Bug 955058 - Unhandled IRC message: 330 RPL_WHOISACCOUNT, r=aleth.
This commit is contained in:
Родитель
9921e32cf2
Коммит
bf3eac966e
|
@ -148,6 +148,7 @@ tooltip.server=Connected to
|
|||
# protect users).
|
||||
tooltip.connectedFrom=Connected from
|
||||
tooltip.registered=Registered
|
||||
tooltip.registeredAs=Registered as
|
||||
tooltip.secure=Using a secure connection
|
||||
# The away message of the user
|
||||
tooltip.away=Away
|
||||
|
|
|
@ -679,6 +679,7 @@ ircAccount.prototype = {
|
|||
server: null,
|
||||
connectedFrom: null,
|
||||
registered: normalizeBool,
|
||||
registeredAs: null,
|
||||
secure: normalizeBool,
|
||||
away: null,
|
||||
ircOp: normalizeBool,
|
||||
|
|
|
@ -53,6 +53,21 @@ var ircNonStandard = {
|
|||
return true;
|
||||
},
|
||||
|
||||
"330": function(aMessage) {
|
||||
// TODO RPL_WHOWAS_TIME
|
||||
|
||||
// RPL_WHOISACCOUNT (Charybdis, ircu & Quakenet)
|
||||
// <nick> <authname> :is logged in as
|
||||
if (aMessage.params.length == 4) {
|
||||
let [, nick, authname] = aMessage.params;
|
||||
// If the authname differs from the nickname, add it to the WHOIS
|
||||
// information; otherwise, ignore it.
|
||||
if (this.normalize(nick) != this.normalize(authname))
|
||||
this.setWhois(nick, {registeredAs: authname});
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
"378": function(aMessage) { // RPL_WHOISHOST (Unreal & Charybdis)
|
||||
// <nick> :is connecting from <host> <ip>
|
||||
let [host, ip] = aMessage.params[2].split(" ").slice(-2);
|
||||
|
|
Загрузка…
Ссылка в новой задаче