From: Jack Allnutt Date: Sat, 3 Nov 2012 23:02:42 +0000 (+0000) Subject: Send enabled capabilities to client X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=dff8edba64b22dff3f63b446570d15750b117fa1;p=KiwiIRC.git Send enabled capabilities to client --- diff --git a/client/assets/dev/model_gateway.js b/client/assets/dev/model_gateway.js index 91cf5d0..1dd3ed0 100644 --- a/client/assets/dev/model_gateway.js +++ b/client/assets/dev/model_gateway.js @@ -197,6 +197,7 @@ kiwi.model.Gateway = function () { break; } }); + that.set('cap', data.cap); break; case 'connect': diff --git a/server/irc/commands.js b/server/irc/commands.js index 3cbfedd..5f0b8c7 100644 --- a/server/irc/commands.js +++ b/server/irc/commands.js @@ -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;