1
0
mirror of https://github.com/ShadowNinja/LuaIRC.git synced 2025-06-15 16:00:27 +02:00

Pass the connection to hooks

This commit is contained in:
ShadowNinja 2013-10-08 14:04:18 -04:00
parent b1cbbf1963
commit b07166345a

View File

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