From 6680a48a8f8476610adad7dcda71dab9de456543 Mon Sep 17 00:00:00 2001 From: Ramiro Bou Date: Thu, 2 Oct 2014 15:17:26 -0300 Subject: [PATCH] Adding CTCP PING response --- client/src/models/network.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/models/network.js b/client/src/models/network.js index 6bd27ce..3e297cc 100644 --- a/client/src/models/network.js +++ b/client/src/models/network.js @@ -534,6 +534,8 @@ // Reply to a TIME ctcp if (event.msg.toUpperCase() === 'TIME') { this.gateway.ctcpResponse(event.type, event.nick, (new Date()).toString()); + }else if(event.msg.toUpperCase().substr(1, 4) === 'PING') { // CTCP PING reply + this.gateway.ctcpResponse(event.type, event.nick, event.msgstr.slice(6, -1)); } } -- 2.25.1