From d17d2abe6e4a5ac293100a341a997e01585efdbd Mon Sep 17 00:00:00 2001 From: Jack Allnutt Date: Sun, 14 Aug 2011 16:48:10 +0100 Subject: [PATCH] fixed small bug relating to buffers --- node/kiwi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/kiwi.js b/node/kiwi.js index b4bb6ee..bce901b 100644 --- a/node/kiwi.js +++ b/node/kiwi.js @@ -427,7 +427,7 @@ var ircSocketDataHandler = function (data, websocket, ircSocket) { ircSocket.holdLast = false; ircSocket.held = ''; } - if (data.substr(-1) === '\n') { + if (data.substr(-1) !== '\n') { ircSocket.holdLast = true; } data = data.split("\n"); -- 2.25.1