Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed the message splitting on Client.say

  • Loading branch information...
commit 12a2e3e02de4b38ef6adec8d8ebb01faf562ae3e 1 parent b360d7a
@Pumpuli Pumpuli authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/irc.js
View
4 lib/irc.js
@@ -684,8 +684,8 @@ Client.prototype.say = function(target, text) { // {{{
}).forEach(function(line) {
var r = new RegExp(".{1," + self.opt.messageSplit + "}", "g");
while ((messagePart = r.exec(line)) != null) {
- self.send('PRIVMSG', target, messagePart);
- self.emit('selfMessage', target, messagePart);
+ self.send('PRIVMSG', target, messagePart[0]);
+ self.emit('selfMessage', target, messagePart[0]);
}
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.