CIRCNetwork.onCTCPReplyPing Member
Syntax
object.onCTCPReplyPing(e);
Arguments
Argument | Summary |
---|---|
e |
Returns
Remarks
See Also
Source Code
function my_replyping (e)
{
// see bug 326523
if (stringTrim(e.CTCPData).length != 13)
{
this.display(getMsg(MSG_PING_REPLY_INVALID, e.user.unicodeName),
"INFO", e.user, "ME!");
return;
}
var delay = formatDateOffset((new Date() - new Date(Number(e.CTCPData))) /
1000);
this.display(getMsg(MSG_PING_REPLY, [e.user.unicodeName, delay]), "INFO",
e.user, "ME!");
}