Thanks for the clarification, Wims.

@colt: Check what $network equals on whatever network isn't displaying and make absolutely certain it's the same in the script. I've tested this with multiple networks and they are all showing. That doesn't mean there isn't an error, but I don't currently see one. (You can type //echo -a $network on that network to verify what it is). You might also try changing which network is first and then run this again. If it's always the same network (instead of always the first network), then you'll know it's due to a difference in $network and what you have in the script as the variable name.

As far as running commands, you're already doing that with the /echo commands. Just use an IF to check connection (instead of the $iif in the middle of the echo)...

Example:
Code:
if ($me !ison %chan) { join %chan }