menu channel,status { RoomList://dialog -m chanList chanList } dialog chanList { title "Channels" size -1 -1 128 136 option dbu button "Join", 2, 91 1 36 15, flat button "Channels", 3, 91 17 36 15, flat list 1, 0 1 91 116, size button "OK", 5, 91 116 36 16, flat ok box "", 6, 1 121 88 12, result button "Categories", 4, 91 33 36 15, flat } on *:DIALOG:chanList:sclick:3: { set %category $right($gettok($did(chanList,1).seltext,1-2,32),2) did -r chanList 1 ChannelList } on *:DIALOG:chanList:sclick:4: { did -r chanList 1 roomcats } alias roomlist { //dialog -m chanList chanList } on *:dialog:chanList:init:*: { roomcats } alias -l ChannelList { set %room.ticks $ticks if ($sock(rooms)) sockclose rooms sockopen rooms sparkpea.net 80 } on *:sockopen:rooms: { if ($sockerr) { did -a chanList 1 Sock error: $+($chr(40),$sock($sockname).wserr,$chr(41)) -> $sock($sockname).wsmsg | return } sockwrite -n $sockname GET $+(/category.php?cat=, $+ %category $+ ,&age=18) HTTP/1.0 $+ $crlf sockwrite -n $sockname Host: sparkpea.net $+ $crlf $+ $crlf %total.rooms = 1 } on *:sockread:rooms: { if ($sockerr) { did -a chanList 1 Sock error: $+($chr(40),$sock($sockname).wserr,$chr(41)) -> $sock($sockname).wsmsg | return } var %b | sockread %b | tokenize 32 %b if ($regex($1-,\