From aa41d27bd6c2152dad4e9f06d7e73834078689dd Mon Sep 17 00:00:00 2001 From: "gijskruitbosch%gmail.com" Date: Sun, 26 Aug 2007 12:45:44 +0000 Subject: [PATCH] Bug 379128 - Accept multiple spaces between IRC parameters r=silver@warwickcompsoc.co.uk (James Ross) ChatZilla Only (NPOTB). git-svn-id: svn://10.0.0.236/trunk@233109 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/extensions/irc/js/lib/irc.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mozilla/extensions/irc/js/lib/irc.js b/mozilla/extensions/irc/js/lib/irc.js index c468db1ca1b..44896277a58 100644 --- a/mozilla/extensions/irc/js/lib/irc.js +++ b/mozilla/extensions/irc/js/lib/irc.js @@ -1247,8 +1247,8 @@ function serv_onRawData(e) if (l[0] == ":") { - // Must split only on a REAL space here, not just any old whitespace. - ary = l.match(/:([^ ]+) (.*)/); + // Must split only on REAL spaces here, not just any old whitespace. + ary = l.match(/:([^ ]+) +(.*)/); e.source = ary[1]; l = ary[2]; ary = e.source.match(/([^ ]+)!([^ ]+)@(.*)/); @@ -1306,12 +1306,12 @@ function serv_onRawData(e) if (sep != -1) /* param, if there is one */ { var trail = l.substr (sep + 2, l.length); - e.params = l.substr(0, sep).split(" "); + e.params = l.substr(0, sep).split(/ +/); e.params[e.params.length] = trail; } else { - e.params = l.split(" "); + e.params = l.split(/ +/); } e.decodeParam = decodeParam;