Permalink
Browse files

This fixes the IPv6-Issue #90 for me. I am not sure if it breaks anyt…

…hing, though. My hubot still works fine.
  • Loading branch information...
1 parent 8a5d508 commit 2d127a63030239c82594bff3658b8cdddba48603 @ccoenen ccoenen committed Jun 12, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/irc.js
View
6 lib/irc.js
@@ -779,10 +779,10 @@ function parseMessage(line, stripColors) { // {{{
var middle, trailing;
// Parse parameters
- if ( line.indexOf(':') != -1 ) {
- var index = line.indexOf(':');
+ if ( line.indexOf(' :') != -1 ) {
+ var index = line.indexOf(' :');
middle = line.substr(0, index).replace(/ +$/, "");
- trailing = line.substr(index+1);
+ trailing = line.substr(index+2);
}
else {
middle = line;

0 comments on commit 2d127a6

Please sign in to comment.