From 156cf4e8b46cdd7b50fbbee56d8e9820806bb29f Mon Sep 17 00:00:00 2001 From: Jack Allnutt Date: Mon, 8 Aug 2011 15:37:24 +0100 Subject: [PATCH] fix for bug where Kiwi is unable to connect to a server that supports CAP --- node/kiwi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.25.1