Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #91 from ccoenen/patch-1

This fixes the IPv6-Issue #90 for me.
  • Loading branch information...
commit c60b696b0b023ed806c304c2c98286ec4db15e1c 2 parents 886461c + af75124
Martyn Smith authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/irc.js
6 lib/irc.js
View
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.