Code based on XTZGZoReX's idea at IRCop /sahop command
This code will do SAPart and SAJoin user from all comchans
Syntax: /sahopall
NOTE: Requires IRCop Status, some networks (which using UnrealIRCd) requires Services Admin
alias sahopall {
if (!$1) {
echo -s * /echo: insufficient parameters
}
else {
set %.n 1
while (%.n <= $comchan($1,0)) {
sapart $1 $comchan($1,%.n) $2-
sajoin $1 $comchan($1,%.n)
inc %.n
}
}
}