1
0
mirror of https://github.com/ShadowNinja/LuaIRC.git synced 2025-07-20 08:30:28 +02:00

1 Commits

Author SHA1 Message Date
b07166345a Pass the connection to hooks 2013-10-08 14:04:18 -04:00

View File

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