/delayjoin <start-delay> <join-delay> #chan1 [pass][,#chan2 [pass],...]
<start-delay> is the number of seconds to wait before joining channels
<join-delay> is the number of seconds to wait between channel joins
alias delayjoin {
if ($1 !isnum || $2 !isnum || (!$3) { echo /delayjoin: invalid parameters }
else {
var %delay = $1
var %x = 1
while (%x <= $numtok($3,44)) {
.timer 1 %delay join $!eval( $gettok($3,%x,44) ,0)
inc %delay $2
inc %x
}
}
}
changed .timer $+ $ticks to .timer
added $!eval( and ,0)