From: Ramiro Bou Date: Thu, 2 Oct 2014 18:17:26 +0000 (-0300) Subject: Adding CTCP PING response X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6680a48a8f8476610adad7dcda71dab9de456543;p=KiwiIRC.git Adding CTCP PING response --- 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)); } }