The problem with ur scripts pheonix is that you dont failsafe them. What if they enter [edit]10[/edit] names, but $modespl can only support 4? Now you have 6 unchanged modes...
alias op {
var %n = 1, %chan = $1
if (!$2) {
/echo -s Insufficient Parameters: /op <channel> <nick1>[,<nick2>,...]
return
}
while ($gettok($2-, %n, 32)) {
var %nicks = %nicks $ifmatch
if ($numtok(%nicks, 32) == $modespl) {
/mode %chan $+(+,$str(o,$modespl)) %nicks
/unset %nicks
}
/inc %n
}
if (%nicks) /mode %chan $+(+,$str(o,$modespl)) %nicks
}
Thats a lil more failsafe
/op #channel KingTomato Pheonix Codemastr Blah Blah2
on a server with $modespl = 3 would be:
/mode #channel +ooo KingTomato Pheonix Codemastr
/mode #channel +ooo Blah Blah2
EDIT: "enter 0 names" means "enter 10 names"