Skip to content

Commit bce415d

Browse files
committed
fix data split delimiter
1 parent 795d23b commit bce415d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/irc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ Client.prototype.connect = function(retryCount, callback) {
736736
buffer = Buffer.concat([buffer, chunk]);
737737
}
738738

739-
var lines = self.convertEncoding(buffer).toString().split('\r\n');
739+
var lines = self.convertEncoding(buffer).toString().split(/\r\n|\r|\n/);
740740

741741
if (lines.pop()) {
742742
// if buffer is not ended with \r\n, there's more chunks.

0 commit comments

Comments
 (0)