From: foldericon Date: Sun, 4 Nov 2012 11:48:47 +0000 (+0100) Subject: fixed 0000013 X-Git-Tag: v0.9-rc1~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=54c5a3371d29a933143b3a8c62dc2ce5696d0758;p=JIRC.git fixed 0000013 --- diff --git a/public/classes.js b/public/classes.js index 45afd1e..4ad2e00 100644 --- a/public/classes.js +++ b/public/classes.js @@ -657,8 +657,9 @@ var Utf8 = { if (raw.match(reg2)) { // JOIN - var chan = raw.replace(reg2, '').replace(/^:/, ''), host = raw.match(/^:([^!]+)!([^!]+)@([\w.\-_]+)/)[0].substring(1).split('!'); + var chan = raw.replace(reg2, '').replace(/^:/, '').replace(/\s$/, ''), host = raw.match(/^:([^!]+)!([^!]+)@([\w.\-_]+)/)[0].substring(1).split('!'); var msg = ''; + debug('CHANNAME ' +chan); var objChannel; if(host[0] == nickname){ objChannel = Object.create(Channel).init(chan); @@ -834,19 +835,19 @@ var Utf8 = { } if(raw.match(/^\:.+\s353\ /)){ // NAMES - var objChan = getChannelByName(raw.match(/ [=*@] #.+ \:/)[0].replace(/^ [=*@] /, '').replace(/ \:$/, '')); + var objChan = getChannelByName(raw.match(/ [=*@] (#.+) \:/)[1]); var arrNicks = raw.split(':')[2].split(' '); var objUser; for(var x=0; x