From dff8edba64b22dff3f63b446570d15750b117fa1 Mon Sep 17 00:00:00 2001 From: Jack Allnutt Date: Sat, 3 Nov 2012 23:02:42 +0000 Subject: [PATCH] Send enabled capabilities to client --- client/assets/dev/model_gateway.js | 1 + server/irc/commands.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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; -- 2.25.1