Auto OP on OP

By Ayon on Mar 22, 2010

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
  }
}

Comments

Sign in to comment.
Ayon   -  Mar 23, 2010

well uhm.. it's not like i give op to all my friends... not even close.. only people that's allowed to have op on that channel

 Respond  
napa182   -  Mar 23, 2010

well i still think if someone gives you an +o and then you go +o all ur friends that join then you should have ur +o removed. like i said before unless you own the chan.

sorry i just don't see the point in this, but nice work anyways...

 Respond  
Ayon   -  Mar 23, 2010

@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

 Respond  
Jethro   -  Mar 22, 2010

This is more like a personalized snippet modified from a mass mode code, and its practicality is questionable.

Though mIRC's in-built auto op feature could have done the same deal via the entry to have users opped according to its auto list.

 Respond  
napa182   -  Mar 22, 2010

Description
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

hmm sounds like a good reason to have ur +o removed tbh...

unless you are the chan owner...

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.