CIRCDCCChat.onParsedData Member

Syntax

object.onParsedData(e);

Arguments

ArgumentSummary
e

Returns

Remarks

See Also

Source Code

function dchat_onParsedData(e)
{
e.type = e.code.toLowerCase();
if (!e.code[0])
{
dd (dumpObjectTree (e));
return false;
}
if (e.line.search(/\x01.*\x01/i) != -1) {
e.type = "ctcp";
e.destMethod = "onCTCP";
e.set = "dcc-chat";
e.destObject = this;
}
else
{
e.type = "privmsg";
e.destMethod = "onPrivmsg";
e.set = "dcc-chat";
e.destObject = this;
}
// Allow DCC Chat to handle it before "falling back" to DCC User.
if (typeof this[e.destMethod] == "function")
e.destObject = this;
else if (typeof this.user[e.destMethod] == "function")
e.destObject = this.user;
else if (typeof this["onUnknown"] == "function")
e.destMethod = "onUnknown";
else if (typeof this.parent[e.destMethod] == "function")
{
e.set = "dcc";
e.destObject = this.parent;
}
else
{
e.set = "dcc";
e.destObject = this.parent;
e.destMethod = "onUnknown";
}
return true;
}