1
0
mirror of https://github.com/ShadowNinja/LuaIRC.git synced 2025-01-26 09:40:29 +01:00

Added OnKick hook

This commit is contained in:
Jakob Ovrum 2010-07-18 18:18:39 +09:00
parent 531f584a56
commit 66361ac235

View File

@ -235,6 +235,10 @@ handlers["333"] = function(o, prefix, me, channel, nick, time)
o:invoke("OnTopicInfo", channel, nick, tonumber(time)) o:invoke("OnTopicInfo", channel, nick, tonumber(time))
end end
handlers["KICK"] = function(o, prefix, channel, kicked, reason)
o:invoke("OnKick", channel, kicked, parsePrefix(prefix), reason)
end
handlers["ERROR"] = function(o, prefix, message) handlers["ERROR"] = function(o, prefix, message)
o:invoke("OnDisconnect", message, true) o:invoke("OnDisconnect", message, true)
o:shutdown() o:shutdown()