mirror of
https://github.com/ShadowNinja/LuaIRC.git
synced 2025-01-26 09:40:29 +01:00
Add support for recognizing Unreal registered users
This commit is contained in:
parent
223ab67a62
commit
2120cf9825
8
init.lua
8
init.lua
@ -234,7 +234,8 @@ local whoisHandlers = {
|
|||||||
["311"] = "userinfo";
|
["311"] = "userinfo";
|
||||||
["312"] = "node";
|
["312"] = "node";
|
||||||
["319"] = "channels";
|
["319"] = "channels";
|
||||||
["330"] = "account";
|
["330"] = "account"; -- Freenode
|
||||||
|
["307"] = "registered"; -- Unreal
|
||||||
}
|
}
|
||||||
|
|
||||||
function meta:whois(nick)
|
function meta:whois(nick)
|
||||||
@ -261,5 +262,10 @@ function meta:whois(nick)
|
|||||||
if result.account then
|
if result.account then
|
||||||
result.account = result.account[3]
|
result.account = result.account[3]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if result.registered then
|
||||||
|
result.account = result.registered[2]
|
||||||
|
end
|
||||||
|
|
||||||
return result
|
return result
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user