From: Jack Allnutt Date: Mon, 8 Aug 2011 14:37:24 +0000 (+0100) Subject: fix for bug where Kiwi is unable to connect to a server that supports CAP X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=156cf4e8b46cdd7b50fbbee56d8e9820806bb29f;p=KiwiIRC.git fix for bug where Kiwi is unable to connect to a server that supports CAP --- diff --git a/node/kiwi.js b/node/kiwi.js index 40da463..0a89b4f 100644 --- a/node/kiwi.js +++ b/node/kiwi.js @@ -311,7 +311,7 @@ var parseIRCMessage = function (websocket, ircSocket, data) { case 'CAP': caps = config.cap_options; options = msg.trailing.split(" "); - switch (_.first(msg.params.split(" "))) { + switch (_.last(msg.params.split(" "))) { case 'LS': opts = ''; _.each(_.intersect(caps, options), function (cap) {