on *:TEXT:!start:#test: _start
on *:INPUT:#test: if ($1 == !start) _start
alias _start {
echo -a cid is: $cid & chan is: $chan
.timer 1 5 _test $cid
}
alias _test {
/scid $1
..fix $chan..
echo -a cid is: $cid & chan is: $chan
}
The structure of my code actually goes from _start to _test1 to _test2 and possibly _test3, all requiring access to $chan. I'd hate to have to add parameters to pass $network and $chan to each of these, down the line..