mirror of
https://github.com/ShadowNinja/LuaIRC.git
synced 2025-01-09 17:40:29 +01:00
Renamed hooks to conform with other hook names: OnUserModeIs -> OnUserMode, OnChannelmodeIs -> OnChannelMode
This commit is contained in:
parent
c4d7278c4b
commit
07f50242f4
4
init.lua
4
init.lua
@ -287,13 +287,13 @@ end
|
|||||||
--RPL_UMODEIS
|
--RPL_UMODEIS
|
||||||
--To answer a query about a client's own mode, RPL_UMODEIS is sent back
|
--To answer a query about a client's own mode, RPL_UMODEIS is sent back
|
||||||
handlers["221"] = function(o, prefix, user, modes)
|
handlers["221"] = function(o, prefix, user, modes)
|
||||||
o:invoke("OnUserModeIs", modes)
|
o:invoke("OnUserMode", modes)
|
||||||
end
|
end
|
||||||
|
|
||||||
--RPL_CHANNELMODEIS
|
--RPL_CHANNELMODEIS
|
||||||
--The result from common irc servers differs from that defined by the rfc
|
--The result from common irc servers differs from that defined by the rfc
|
||||||
handlers["324"] = function(o, prefix, user, channel, modes)
|
handlers["324"] = function(o, prefix, user, channel, modes)
|
||||||
o:invoke("OnChannelModeIs", channel, modes)
|
o:invoke("OnChannelMode", channel, modes)
|
||||||
end
|
end
|
||||||
|
|
||||||
handlers["MODE"] = function(o, prefix, target, modes)
|
handlers["MODE"] = function(o, prefix, target, modes)
|
||||||
|
Loading…
Reference in New Issue
Block a user