Services XOP-Like Access System

By Myidentityisasecret on Apr 05, 2013

Hey! So I'm no pro scripter, but I threw this together and it works pretty well if I do say so myself xD

Feel free to use it and good luck!

; Access script made by Tanmay.
; For help, do /server -m irc.rizon.net -j #me
; That will bring you to my channel and you can ask me for help there.
; Good luck and I hope this script helps you!

; This part will actually voice/halfop/op/admin/owner the person 
on *:JOIN:*: {
  if ($($+(%,$nick,.,level),2) == voice) {
    /mode $chan +v $nick
  }
  if ($($+(%,$nick,.,level),2) == halfop) {
    /mode $chan +h $nick
  }
  if ($($+(%,$nick,.,level),2) == op) {
    /mode $chan +o $nick
  }
  if ($($+(%,$nick,.,level),2) == admin) {
    /mode $chan +ao $nick $nick
  }
  if ($($+(%,$nick,.,level),2) == owner) {
    /mode $chan +qo $nick $nick
  }
}
; This part will allow you to add and remove people from the access list. 
on *:TEXT:*:#: {
  ; Change the below line to your name. If you want people who are already admin uncomment line 21 and comment line 20. 
  if ($nick == Tanmay) {
    if ($2 != $null) {
      ; if ($($+(%,$nick,.,level),2) == admin) || if ($($+(%,nick,.,level),2) == owner) { 
      if ($1 == .avoice) {
        set $+(%,$2,.,level) voice
        msg $chan $2 will now be automatically voiced.
      }
      if ($1 == .ahalfop) {
        set $+(%,$2,.,level) halfop
        msg $chan $2 will be now automatically given halfop.
      } 
      if ($1 == .aop) {
        set $+(%,$2,.,level) op
        msg $chan $2 will now automatically be given op.
      }
      if ($1 == .aadmin) {
        set $+(%,$2,.,level) admin
        msg $chan $2 will now automatically be given admin.
      }
      if ($1 == .aowner) {
        set $+(%,$2,.,level) owner
        msg $chan $2 will now automatically be given owner.
      }
      if ($1 == .rvoice) {
        unset $+(%,$2,.,level)
        msg $chan $2 will no longer automatically be voiced.
      }
      if ($1 == .rhalfop) {
        unset $+(%,$2,.,level)
        msg $chan $2 will no longer be automatically be given halfop
      }
      if ($1 == .rop) {
        unset $+(%,$2,.,level)
        msg $chan $2 will no longer be automatically given op.
      }
      if ($1 == .radmin) {
        unset $+(%,$2,.,level)
        msg $chan $2 will no longer be automatically given op.
      }
      if ($1 == .rowner) {
        unset $+(%,$2,.,level) {
          msg $chan $2 will no longer be given owner.
        }
      }
    }
  }
}

; That's all, thanks for your time!
;  I hope this helps you! Good luck!

Comments

Sign in to comment.
Myidentityisasecret   -  Apr 05, 2013

I accidentally said 20 and 21, I meant 28 and 29
Sorry!

 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.