mirror of
https://github.com/ShadowNinja/LuaIRC.git
synced 2025-01-25 09:20:19 +01:00
Adding handlers: RPL_UMODEIS and RPL_CHANNELMODEIS
This commit is contained in:
parent
9977943966
commit
ecafce9f0c
12
init.lua
12
init.lua
@ -282,6 +282,18 @@ 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
|
||||||
|
|
||||||
|
--RPL_UMODEIS
|
||||||
|
--To answer a query about a client's own mode, RPL_UMODEIS is sent back
|
||||||
|
handlers["221"] = function(o, modes)
|
||||||
|
o:invoke("OnUserModeIs", modes)
|
||||||
|
end
|
||||||
|
|
||||||
|
--RPL_CHANNELMODEIS
|
||||||
|
--user seems to be just a repeat of the user's nick
|
||||||
|
handlers["324"] = function(o, user, channel, modes)
|
||||||
|
o.invoke("OnChannelModeIs", user, channel, modes)
|
||||||
|
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()
|
||||||
|
Loading…
Reference in New Issue
Block a user