From 54c5a3371d29a933143b3a8c62dc2ce5696d0758 Mon Sep 17 00:00:00 2001 From: foldericon Date: Sun, 4 Nov 2012 12:48:47 +0100 Subject: [PATCH] fixed 0000013 --- public/classes.js | 15 ++++++++++----- public/main.css | 2 ++ 2 files changed, 12 insertions(+), 5 deletions(-) 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