Passing prefix to mode handlers

This commit is contained in:
Joshua Simmons 2010-07-18 19:05:14 +10:00
parent 7d891b2380
commit 339d3c9d8d
1 changed files with 6 additions and 6 deletions

View File

@ -284,14 +284,14 @@ 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, modes) handlers["221"] = function(o, prefix, modes)
o:invoke("OnUserModeIs", modes) o:invoke("OnUserModeIs", parsePrefix(prefix), modes)
end end
--RPL_CHANNELMODEIS --RPL_CHANNELMODEIS
--user seems to be just a repeat of the user's nick --user seems to be just a repeat of the user's nick
handlers["324"] = function(o, user, channel, modes) handlers["324"] = function(o, prefix, user, channel, modes)
o.invoke("OnChannelModeIs", user, channel, modes) o.invoke("OnChannelModeIs", parsePrefix(prefix), user, channel, modes)
end end
handlers["ERROR"] = function(o, prefix, message) handlers["ERROR"] = function(o, prefix, message)