mirror of
https://github.com/ShadowNinja/LuaIRC.git
synced 2025-07-06 01:50:22 +02:00
Added OnKick hook
This commit is contained in:
4
init.lua
4
init.lua
@ -233,6 +233,10 @@ end
|
|||||||
|
|
||||||
--topic creation info
|
--topic creation info
|
||||||
handlers["333"] = function(o, prefix, me, channel, nick, time)
|
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)
|
o:invoke("OnKick", channel, kicked, parsePrefix(prefix), reason)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user