1
0
mirror of https://github.com/ShadowNinja/LuaIRC.git synced 2025-07-20 16:40:26 +02:00

1 Commits

Author SHA1 Message Date
b07166345a Pass the connection to hooks 2013-10-08 14:04:18 -04:00
2 changed files with 2 additions and 13 deletions

View File

@ -90,17 +90,6 @@ handlers["432"] = needNewNick
-- ERR_NICKNAMEINUSE
handlers["433"] = needNewNick
-- RPL_MOTDSTART
handlers["375"] = function(o, prefix, info)
o.motd = ""
end
-- RPL_MOTD
handlers["372"] = function(o, prefix, nick, line)
-- MOTD lines have a "- " prefix, strip it.
o.motd = o.motd..line:sub(3)..'\n'
end
--NAMES list
handlers["353"] = function(o, prefix, me, chanType, channel, names)
if o.track_users then

View File

@ -67,7 +67,7 @@ function meta:invoke(name, ...)
local hooks = self.hooks[name]
if hooks then
for id, f in pairs(hooks) do
if f(...) then
if f(self, ...) then
return true
end
end