1
0
mirror of https://github.com/ShadowNinja/LuaIRC.git synced 2024-09-27 23:10:33 +02:00

Fixing small typo and clarifying arguments

This commit is contained in:
Joshua Simmons 2010-07-18 21:21:55 +10:00
parent b53cd265ae
commit 96c2fd3ac0

View File

@ -281,10 +281,10 @@ end
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)) o:invoke("OnTopicInfo", channel, nick, tonumber(time))
end end
handlers["KICK"] = function(o, prefix, channel, kicked, reason) 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
--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
@ -293,10 +293,10 @@ handlers["221"] = function(o, prefix, modes)
end end
--RPL_CHANNELMODEIS --RPL_CHANNELMODEIS
--user seems to be just a repeat of the user's nick --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", user, channel, modes) o:invoke("OnChannelModeIs", user, channel, modes)
end end
handlers["ERROR"] = function(o, prefix, message) handlers["ERROR"] = function(o, prefix, message)
o:invoke("OnDisconnect", message, true) o:invoke("OnDisconnect", message, true)