 }
 
 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);
+    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);
-	}
+    if (cl.selectedItem != null) {
+        swrite('JOIN '+cl.selectedItem.channel);
+    }
 }
 
 internal function mouselistener(e:MouseEvent):void {

                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 chanlistupdate(updatesrc:String,b:SideButton):void {
    swrite('LIST');
}

internal function closetab(closesrc:String,cb:SideButton):void {
