Basicly what it does is that whe you are given @ it will go trough you mirc auto-op list and check if any non opped users on the channel is in you list. if so, they're given op automaticly.
This script is using address mask 3 & 9 only
UPDATE: Noticed I forgot to add a check for the network.. So that's fixed now
on 1:OP:#:aoponop $opnick #
on 1:SERVEROP:#:aoponop $opnick #
alias aoponop {
if ($1 == $me) {
var %i 1, %x $nick($2,0,r), %y 0
while (%i <= %x) {
if (($aop($address($nick($2,%i,r),9))) || ($aop($address($nick($2,%i,r),3)))) {
inc %y
if ($istok($aop($address($nick($2,%i,r),9)).type,$2,44) || $istok($aop($address($nick($2,%i,r),3)).type,$2,44)) {
if ($network == $aop($address($nick($2,%i,r),9)).network || $network == $aop($address($nick($2,%i,r),3)).network) {
var %z %z $nick($2,%i,r)
if (%y == $modespl) { mode $2 $+(+,$str(o,%y)) %z | var %y 0 | unset %z }
}
}
}
inc %i
}
if (%z) mode $2 $+(+,$str(o,%y)) %z
}
}
@napa182: well the built-in aop in mirc specifies channels, so if you don't want this to op a person on a channel, then don't give him aop on there... this will only op persons that you already trust with on join autoop on that specific channel...
@Jethro_: mIRC's built-in auto op only works when you're opped and the person joins.. with this script you will op the people automaticly if you're given op when they're allready there