Permalink
Browse files

parsing bugfix

  • Loading branch information...
1 parent be61a96 commit dddc2cbea8dbef1d7846fb1246e999f1701d22f5 @einaros committed May 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 IRC.js
View
2 IRC.js
@@ -510,7 +510,7 @@ private(IRC.prototype, {
// anything other than ctcp
var parts = line.trim().split(/ :/)
, args = parts[0].split(' ');
- if (parts.length > 0) args.push(parts[1]);
+ if (parts.length > 1) args.push(parts.slice(1).join(' :'));
if (line.match(/^:/)) {
args[1] = args.splice(0, 1, args[1]);
args[1] = (args[1] + '').replace(/^:/, '');

0 comments on commit dddc2cb

Please sign in to comment.