CIRCServer.onDCCChat Member

Syntax

object.onDCCChat(e);

Arguments

ArgumentSummary
e

Returns

Remarks

See Also

Source Code

function serv_dccchat (e)
{
var ary = e.DCCData.match (/(chat) (\d+) (\d+)/i);
if (ary == null)
return false;
e.id = ary[2];
// Checky longword --> dotted IP conversion.
var host = Number(e.id).toString(16);
e.host = Number("0x" + host.substr(0, 2)) + "." +
Number("0x" + host.substr(2, 2)) + "." +
Number("0x" + host.substr(4, 2)) + "." +
Number("0x" + host.substr(6, 2));
e.port = Number(ary[3]);
e.destObject = e.replyTo;
e.set = (e.replyTo == e.user) ? "user" : "channel";
return true;
}