From 309c83561b3cbae5ddc6011d5e1e54aac38dbd35 Mon Sep 17 00:00:00 2001 From: Darren Date: Fri, 5 Aug 2011 01:51:09 +0100 Subject: [PATCH] ircSocketDataHandler() fix --- node/kiwi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/kiwi.js b/node/kiwi.js index 9731ffe..bfd0e16 100644 --- a/node/kiwi.js +++ b/node/kiwi.js @@ -418,7 +418,7 @@ var ircSocketDataHandler = function (data, websocket, ircSocket) { ircSocket.holdLast = false; ircSocket.held = ''; } - if (data.substr(-2) === '\n') { + if (data.substr(-1) === '\n') { ircSocket.holdLast = true; } data = data.split("\n"); -- 2.25.1