Added OnKick hook

This commit is contained in:
Jakob Ovrum 2010-07-18 18:18:39 +09:00
parent 531f584a56
commit 66361ac235
1 changed files with 4 additions and 0 deletions

View File

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