Skip to content

Commit

Permalink
Merge pull request martynsmith#91 from ccoenen/patch-1
Browse files Browse the repository at this point in the history
This fixes the IPv6-Issue martynsmith#90 for me.
  • Loading branch information
martynsmith committed Jun 28, 2012
2 parents 886461c + af75124 commit c60b696
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/irc.js
Original file line number Diff line number Diff line change
Expand Up @@ -781,9 +781,9 @@ function parseMessage(line, stripColors) { // {{{

// Parse parameters
if ( line.indexOf(':') != -1 ) {
var index = line.indexOf(':');
middle = line.substr(0, index).replace(/ +$/, "");
trailing = line.substr(index+1);
match = line.match(/(.*)(?:^:|\s+:)(.*)/);
middle = match[1].trimRight();
trailing = match[2];
}
else {
middle = line;
Expand Down

0 comments on commit c60b696

Please sign in to comment.