Skip to content
Browse files

Merge pull request #112 from Pumpuli/fix_message_split

Fixed the message splitting on Client.say
  • Loading branch information...
2 parents b360d7a + 12a2e3e commit ddf05073f565a2af62ff71e1b16ffc1d698385dd @martynsmith committed Oct 25, 2012
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]);
}
});
}

0 comments on commit ddf0507

Please sign in to comment.
Something went wrong with that request. Please try again.