Auto DEOP Nick

By chicknh8r on Nov 21, 2005

If You have OP status in a channel, Then with this snippet, you can right click on a nick, select Auto DEOP ON. It will echo to active "You Have Turned DEOP ON $$1". And if this nick is opd opped afterward, you will automatically deop this nick either through( we use Chanserv) Chanserv, or you yourself will deop them(again only if you have status). To stop, just right click on nick and select OFF, and it will echo "You have Turned DEOP OFF $$1".

Just copy and past into remotes( ctrl R). And your set!
Please, any info/feedback/better & neater way to write this would be great. Im Pretty New to whole scripting thing.

#DEOP off

on *:OP:*:#: /_DEOP %auto 
on *:HELP:*:#: /_DEHOP %auto
on *:VOICE:*:#: /_DEVOICE %auto

#DEOP end

menu channel,nicklist {
  Auto DEOP Nick
  . Status ( $+ $group(#DEOP).status $+ )
  .-
  .On: .set %auto $nick | .enable #DEOP | echo -a 12You Have Turned DEOP on $$1 
  .Off: .unset %auto $nick | .disable #DEOP | echo -a 12You Have Turned DEOP off $$1 
}

alias _DEOP {
  if ($nick = $me) { halt }
  if ($me isop $chan) { 
    msg chanserv deop # $nick
  }
  else {
    mode # -o $nick
  }
}

alias _DEHOP {
  if ($nick = $me) { halt }
  if ($me isop $chan) {
    msg chanserv dehalfop # $nick
  }
  else {
    mode # -h $nick
  }
}

alias _DEVOICE {
  if ($nick = $me) { halt }
  if ($me isop $chan) {
    msg chanserv devoice # $nick
  }
  else {
    mode # -v $nick
  }
}

Comments

Sign in to comment.
Aaron   -  Jan 08, 2007

its perfect for a channel im op in, the ops in it will op anyone :P

 Respond  
Sasuke   -  Nov 25, 2005

<_< Meh.

 Respond  
RoninWarrior   -  Nov 21, 2005

funny this is cool

 Respond  
Crash   -  Nov 21, 2005

This is a nice code. Usefull.

 Respond  
Raid   -  Nov 21, 2005

this is kind of cool. Fun to mess with aops when they keep typing !op and then are deoped.

 Respond  
Whatever   -  Nov 21, 2005

You can change it by clicking edit above the code

 Respond  
chicknh8r   -  Nov 21, 2005

\"Just copy and past into remotes( ctrl R).\"
Sorry..... ( ALT R ) not ( ctrl R ) >.<

 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.