CIRCNetwork.on402 Member

ERR_NOSUCHSERVER

Syntax

object.on402(e);

Arguments

ArgumentSummary
e

Returns

Remarks

See Also

Source Code

function my_401(e)
{
var server, channel, user;
/* Note that servers generally only send 401 and 402, sharing the former
* between nicknames and channels, but we're ready for anything.
*/
if (e.code == 402)
server = e.decodeParam(2);
else if (arrayIndexOf(e.server.channelTypes, e.params[2][0]) != -1)
channel = new CIRCChannel(e.server, null, e.params[2]);
else
user = new CIRCUser(e.server, null, e.params[2]);
if (user && this.whoisList && (user.canonicalName in this.whoisList))
{
// If this is from a /whois, send a /whowas and don't display anything.
this.primServ.whowas(user.unicodeName, 1);
this.whoisList[user.canonicalName] = false;
return;
}
if (user)
user.display(getMsg(MSG_IRC_401, [user.unicodeName]), e.code);
else if (server)
this.display(getMsg(MSG_IRC_402, [server]), e.code);
else if (channel)
channel.display(getMsg(MSG_IRC_403, [channel.unicodeName]), e.code);
else
dd("on401: unreachable code.");
}