From 9de52d296a5b8e059c00defd7f6b3ec497f727a5 Mon Sep 17 00:00:00 2001 From: Darren Date: Sat, 10 May 2014 21:07:48 +0100 Subject: [PATCH] Client CTCP helper functions ctcpRequest/ctcpResponse --- client/src/app.js | 1 + client/src/models/application.js | 2 +- client/src/models/network.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/app.js b/client/src/app.js index e063bc4..d65887a 100644 --- a/client/src/app.js +++ b/client/src/app.js @@ -65,6 +65,7 @@ _kiwi.global = { var funcs = { kiwi: 'kiwi', raw: 'raw', kick: 'kick', topic: 'topic', part: 'part', join: 'join', action: 'action', ctcp: 'ctcp', + ctcpRequest: 'ctcpRequest', ctcpResponse: 'ctcpResponse', notice: 'notice', msg: 'privmsg', changeNick: 'changeNick', channelInfo: 'channelInfo', mode: 'mode' }; diff --git a/client/src/models/application.js b/client/src/models/application.js index 35d4b95..2318f47 100644 --- a/client/src/models/application.js +++ b/client/src/models/application.js @@ -635,7 +635,7 @@ type = ev.params[0]; ev.params.shift(); - this.connections.active_connection.gateway.ctcp(true, type, target, ev.params.join(' ')); + this.connections.active_connection.gateway.ctcpRequest(type, target, ev.params.join(' ')); } function settingsCommand (ev) { diff --git a/client/src/models/network.js b/client/src/models/network.js index 05d5b33..4cfcad5 100644 --- a/client/src/models/network.js +++ b/client/src/models/network.js @@ -456,7 +456,7 @@ // Reply to a TIME ctcp if (event.msg.toUpperCase() === 'TIME') { - this.gateway.ctcp(false, event.type, event.nick, (new Date()).toString()); + this.gateway.ctcpResponse(event.type, event.nick, (new Date()).toString()); } } -- 2.25.1