     if (btns == null) {
         return;
     }
-	if (active == 'chanlist') {
-		return;
-	}
+    if (active == 'chanlist') {
+        return;
+    }
     btnbar.height = cmdline.y+cmdline.height-topic.y-1;
     var tmpw:Number = 0;
     for each(var tmpb:SideButton in btns) {

                case 'ERROR':
                    scmsg = trailing;
                    break;
				case '321':
					chanlist = new Array();
					clupdate = true;
					break;
				case '322':
					var tmpchan:Object = new Object();
					tmpchan.channel = params[0];
					tmpchan.users = int(params[1]);
					if (trailing.indexOf('[+') == 0) {
						tmpchan.modes = trailing.slice(1,trailing.indexOf(']'));
						tmpchan.topic = cc(trailing.slice(trailing.indexOf(']')+1));
					} else {
						tmpchan.modes = '';
						tmpchan.topic = cc(trailing);
					}
					chanlist.push(tmpchan);
					break;
				case '323':
					clupdate = false;
					cl.dataProvider = chanlist;
					cl.columns[1].sortDescending = true;
					cl.dispatchEvent(new DataGridEvent(DataGridEvent.HEADER_RELEASE,false,false,1));
					break;
                case 'KILL':
                case '436':
                    achans = new Array();

}

internal function clupdater():void {
    if (clupdate) {
        cl.dataProvider = chanlist;
        cl.columns[1].sortDescending = true;
        cl.dispatchEvent(new DataGridEvent(DataGridEvent.HEADER_RELEASE,false,false,1));
    }
    setTimeout(clupdater,500);
}

internal function chanlistclick(e:Event):void {
    if (cl.selectedItem != null) {
        swrite('JOIN '+cl.selectedItem.channel);
    }
}

internal function mouselistener(e:MouseEvent):void {
