mirror of
https://github.com/ShadowNinja/LuaIRC.git
synced 2025-01-25 01:10:20 +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";
|
||||
["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
|
||||
|
Loading…
Reference in New Issue
Block a user