mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-20 09:26:23 -07:00
require gclog in check_links plugin example
This commit is contained in:
parent
0fd9a3a812
commit
689a6da67c
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
local string = require("string")
|
||||
local events = require("events")
|
||||
local gcsql = require("gcsql")
|
||||
local log = require("gclog")
|
||||
|
||||
local recognized_tlds = {"com", "net", "org", "edu", "gov", "us", "uk"}
|
||||
|
||||
|
@ -31,7 +32,7 @@ end
|
|||
events.register_event({"message-pre-format"}, function(tr, post, req)
|
||||
is_new, err = is_new_poster(post.IP)
|
||||
if(err ~= nil) then
|
||||
error_log(err:Error())
|
||||
log.error_log(err:Error())
|
||||
:Str("lua", "check_links.lua")
|
||||
:Str("event", tr)
|
||||
:Send()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue