What would you think about maybe killing the %z = line and add on on load and menu option that uses a goto loop to add channels to the %z variable
for instance
on *:load:{ setchannels }
alias setchannels {
if ($input(Would you like to add a channel?,y,Add a channel) == $true) {
:addanother
var %tmptmp = #$$?=\"Enter the channel name to be added.\"
if (%tmptmp != $null) && ($istok(%z,%tmptmp,32) != $true) {
%z = $addtok(%z,%tmptmp,32)
}
if ($input(Would you like to add another channel?,y,Add a channel) == $true) { goto addanother }
}
}
This seems sloppy to me but i tried a while ($input() != $true) line and it wouldnt work for me.
Honestly tho Im just trying to convey my idea, not make the best code I can.
Anyhoo then you could maybe even add a..
menu channel,query,status,nicklist { Set $chr(36) $+ Broadcast Channels:setchannels }
It did occur to me that you might also want to include a removechannels alias but making that from the example above would be pretty easy and im only trying to convey an idea here.