diff --git a/lib/irc.js b/lib/irc.js index d25d2e5e..5fd153d6 100644 --- a/lib/irc.js +++ b/lib/irc.js @@ -689,7 +689,7 @@ Client.prototype.connect = function(retryCount, callback) { // {{{ var buffer = ''; self.conn.addListener('data', function(chunk) { buffer += chunk; - var lines = buffer.split('\r\n'); + var lines = buffer.split(/\r\n|\r|\n/); buffer = lines.pop(); lines.forEach(function(line) { var message = parseMessage(line, self.opt.stripColors);