From: Darren Date: Sat, 10 May 2014 20:07:48 +0000 (+0100) Subject: Client CTCP helper functions ctcpRequest/ctcpResponse X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9de52d296a5b8e059c00defd7f6b3ec497f727a5;p=KiwiIRC.git Client CTCP helper functions ctcpRequest/ctcpResponse --- 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()); } }