From the help file:
Code:
$chan(0)        returns the number of channels you are on
$chan(2)        returns the name of the 2nd channel you are on
 

Now make a while loop and you can see al the channels.


@#botwars @Kreynet