on *:CONNECT: { .autojoin -s | var %x = $numtok(%y,44) | while (%x > 0) { .timer 1 $calc(%x * 5) join $gettok(%y,%x,44) | dec %x } } on *:DISCONNECT: { set -e %y #chan1,#chan2,#chan3,#chan4,#chan5,#chan6,#chan7,#chan8,#chan9,#chan10 }