Send enabled capabilities to client
authorJack Allnutt <m2ys4u@Gmail.com>
Sat, 3 Nov 2012 23:02:42 +0000 (23:02 +0000)
committerJack Allnutt <m2ys4u@Gmail.com>
Sat, 3 Nov 2012 23:02:42 +0000 (23:02 +0000)
client/assets/dev/model_gateway.js
server/irc/commands.js

index 91cf5d0aeab8da86a7c1a7fdd11cfeede4371a94..1dd3ed02343ad50b0ce5d49aff6ca2e45a2f8bc1 100644 (file)
@@ -197,6 +197,7 @@ kiwi.model.Gateway = function () {
                         break;\r
                     }\r
                 });\r
+                that.set('cap', data.cap);\r
                 break;\r
 \r
             case 'connect':\r
index 3cbfedd16eb83cdf4170ca8b23a082500df62efd..5f0b8c71e85b79921e59aaf37dec7177c2ce19d2 100644 (file)
@@ -110,7 +110,7 @@ var listeners = {
                 }
                 //this.client.sendIrcCommand({server: this.con_num, command: 'RPL_ISUPPORT', options: this.irc_connection.options});
                 //websocket.sendClientEvent('options', {server: '', "options": irc_connection.IRC.options});
-                this.client.sendIrcCommand('options', {server: this.con_num, options: this.irc_connection.options});
+                this.client.sendIrcCommand('options', {server: this.con_num, options: this.irc_connection.options, cap: this.irc_connections.cap.enabled});
             },
     'RPL_ENDOFWHOIS':         function (command) {
                                /*command.server = this.con_num;