From: Darren Date: Fri, 28 Feb 2014 22:50:04 +0000 (+0000) Subject: Client: /part command fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8693757e455d45c8ecc47f620f580be9f6baaa93;p=KiwiIRC.git Client: /part command fix --- diff --git a/client/src/models/application.js b/client/src/models/application.js index bc60a95..3a09516 100644 --- a/client/src/models/application.js +++ b/client/src/models/application.js @@ -734,11 +734,13 @@ } function partCommand (ev) { + var that = this; + if (ev.params.length === 0) { this.connections.active_connection.gateway.part(_kiwi.app.panels().active.get('name')); } else { _.each(ev.params, function (channel) { - this.connections.active_connection.gateway.part(channel); + that.connections.active_connection.gateway.part(channel); }); } }