CIRCChannel.onChanMode Member

Syntax

object.onChanMode(e);

Arguments

ArgumentSummary
e

Returns

Remarks

See Also

Source Code

function my_cmode (e)
{
if (e.code == "MODE")
{
var msg = e.decodeParam(1);
for (var i = 2; i < e.params.length; i++)
msg += " " + e.decodeParam(i);
var source = e.user ? e.user.unicodeName : e.source;
this.display(getMsg(MSG_MODE_CHANGED, [msg, source]),
"MODE", (e.user || null), this);
}
else if ("pendingModeReply" in this)
{
var msg = e.decodeParam(3);
for (var i = 4; i < e.params.length; i++)
msg += " " + e.decodeParam(i);
var view = ("messages" in this && this.messages) ? this : e.network;
view.display(getMsg(MSG_MODE_ALL, [this.unicodeName, msg]), "MODE");
delete this.pendingModeReply;
}
var updates = new Array();
for (var u in e.usersAffected)
updates.push(e.usersAffected[u]);
this.updateUsers(updates);
this.updateHeader();
updateTitle(this);
if (client.currentObject == this)
updateUserList();
}