Client CTCP helper functions ctcpRequest/ctcpResponse
authorDarren <darren@darrenwhitlen.com>
Sat, 10 May 2014 20:07:48 +0000 (21:07 +0100)
committerDarren <darren@darrenwhitlen.com>
Sat, 10 May 2014 20:07:48 +0000 (21:07 +0100)
client/src/app.js
client/src/models/application.js
client/src/models/network.js

index e063bc47b6804faac81f726ad369660608a65c7f..d65887a82453f9e4aa928941e3f6d110fcdba509 100644 (file)
@@ -65,6 +65,7 @@ _kiwi.global = {
             var funcs = {\r
                 kiwi: 'kiwi', raw: 'raw', kick: 'kick', topic: 'topic',\r
                 part: 'part', join: 'join', action: 'action', ctcp: 'ctcp',\r
+                ctcpRequest: 'ctcpRequest', ctcpResponse: 'ctcpResponse',\r
                 notice: 'notice', msg: 'privmsg', changeNick: 'changeNick',\r
                 channelInfo: 'channelInfo', mode: 'mode'\r
             };\r
index 35d4b959cb89da0e9bfce547c7b7f55a99c2d26b..2318f47eed1c609a351d8ab3ad138456d344282a 100644 (file)
         type = ev.params[0];\r
         ev.params.shift();\r
 \r
-        this.connections.active_connection.gateway.ctcp(true, type, target, ev.params.join(' '));\r
+        this.connections.active_connection.gateway.ctcpRequest(type, target, ev.params.join(' '));\r
     }\r
 \r
     function settingsCommand (ev) {\r
index 05d5b334b085102f78a9497b86fc9cd052ff1cb1..4cfcad5e39f1180dcc2cc87733e36d94a6688d3f 100644 (file)
 
         // 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());
         }
     }