CIRCUser.onNotice Member
Syntax
object.onNotice(e);
Arguments
Argument | Summary |
---|---|
e |
Returns
Remarks
See Also
Source Code
function my_notice (e)
{
var msg = e.decodeParam(2);
var displayMailto = client.prefs["munger.mailto"];
var ary = msg.match(/^\[([^ ]+)\]\s+/);
if (ary)
{
var channel = e.server.getChannel(ary[1]);
if (channel)
{
client.munger.getRule(".mailto").enabled = displayMailto;
channel.display(msg, "NOTICE", this, e.server.me);
client.munger.getRule(".mailto").enabled = false;
return;
}
}
client.munger.getRule(".mailto").enabled = displayMailto;
this.display(msg, "NOTICE", this, e.server.me);
client.munger.getRule(".mailto").enabled = false;
}