CIRCServer.onMode Member
user changed the mode
Syntax
object.onMode(e);
Arguments
Argument | Summary |
---|---|
e |
Returns
Remarks
See Also
Source Code
function serv_mode (e)
{
e.destObject = this;
/* modes are not allowed in +channels -> no need to test that here.. */
if (arrayIndexOf(this.channelTypes, e.params[1][0]) != -1)
{
e.channel = new CIRCChannel(this, null, e.params[1]);
if ("user" in e && e.user)
e.user = new CIRCChanUser(e.channel, e.user.unicodeName);
e.type = "chanmode";
e.destMethod = "onChanMode";
}
else
{
e.type = "usermode";
e.destMethod = "onUserMode";
}
return true;
}