From: Jack Allnutt Date: Sun, 14 Aug 2011 15:48:10 +0000 (+0100) Subject: fixed small bug relating to buffers X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d17d2abe6e4a5ac293100a341a997e01585efdbd;p=KiwiIRC.git fixed small bug relating to buffers --- 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");