Skip to content

Commit

Permalink
fix data split delimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
ota42y committed Jan 7, 2015
1 parent 377ce46 commit 9a36258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/irc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9a36258

Please sign in to comment.