1
0
mirror of https://github.com/ShadowNinja/LuaIRC.git synced 2024-11-05 10:00:28 +01:00

Add support for recognizing Unreal registered users

This commit is contained in:
Brandon Williams 2010-06-25 09:08:00 +08:00 committed by JakobOvrum
parent 223ab67a62
commit 2120cf9825

View File

@ -234,7 +234,8 @@ local whoisHandlers = {
["311"] = "userinfo";
["312"] = "node";
["319"] = "channels";
["330"] = "account";
["330"] = "account"; -- Freenode
["307"] = "registered"; -- Unreal
}
function meta:whois(nick)
@ -261,5 +262,10 @@ function meta:whois(nick)
if result.account then
result.account = result.account[3]
end
if result.registered then
result.account = result.registered[2]
end
return result
end