Bug 799068 - Land in comm-central Instantbird's changes to chat/ - 3 - Bio 1628 - Unhandled IRC message: 330 RPL_WHOISACCOUNT, r=aleth.

This commit is contained in:
Patrick Cloke 2012-08-26 16:36:37 -04:00
Родитель 7f9facaf63
Коммит 1751f2c28c
3 изменённых файлов: 17 добавлений и 0 удалений

Просмотреть файл

@ -147,6 +147,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

Просмотреть файл

@ -676,6 +676,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);