I'd need a script to perform upon connection to a network the following things:
1. the bot sets all channels +inactive (channel set #name +inactive) but I wouldn't know how to extract the channel names from the channel file (grep?) and loop them (prolly for ... next)
2. rejoin all channels (+inactive) with a 2 sec interval (I tried pause, but that didn't work... so I guess a timer is needed or so...)
any help would be appreciated...
The pause is essential in the script, so it's not just cycling...
*MOD* this is what I have allready, after some research:
Code: Select all
set chan {}
foreach chan {#chan1 #chan2} {
channel set $chan +inactive
}
after 1500
foreach chan {#chan1 #chan2} {
after 1500
channel set $chan -inactive
}