deop script

By Lord Kiam on Aug 30, 2005

this is a deop script when someone deops u u get opped auto and u deop and kickban them post what ya think please :)

on *:DEOP:#: {
  if ($nick = $me) halt
  if ($opnick == $me && ($nick != $me || $nick != Chanserv || dal.net !isin $nick)) {    cs op # $me
    mode # -o+b $nick %banip 
    kick # $nick THATS WHAT YOU GET WHEN YOU MESS WITH ME   
    halt
  }
}

Comments

Sign in to comment.
xDaeMoN   -  Aug 31, 2005

@ Brottor, you can specify what the ban mask.

/ban -k #channel [mask type] [reason]

/help /ban

** masks are optional. If not specified, nick & address would be used as the ban mask.

/help $mask - for mask types

 Respond  
brottor   -  Aug 31, 2005

you can also combine the kick and ban into one line:
ban -k $nick reason
oh but im not sure how to ban the ip with it..also isnt there a way to set a timer using that command?

 Respond  
Lord Kiam   -  Aug 31, 2005

well it does work propley when someone deops u it kicks them and bans and says thats what u get when u mess with me and it works fine

 Respond  
xDaeMoN   -  Aug 30, 2005

You can also try this for the top part. Also you missed a close parenthesis.

on *:Deop:#: {
if ($opnick == $me) && (!$istok(chanserv $me, $nick,32)) || (dal.net !isin $nick) {

 Respond  
supergeo   -  Aug 30, 2005

The code I just posted is shorter and faster. I would use it if I were you.

 Respond  
supergeo   -  Aug 30, 2005

on *:Deop:#: {
if ($opnick == $me && ($nick != $me || $nick != Chanserv || dal.net !isin $nick)) {
cs op # $me
mode # -o $nick
ban -k $nick THATS WHAT YOU GET WHEN YOU MESS WITH ME
}
}

 Respond  
supergeo   -  Aug 30, 2005

$nick != $me

You\'ve already checked this.

 Respond  
Corne   -  Aug 30, 2005

Where is the variable %banip setted ?

 Respond  
Noutrious   -  Aug 30, 2005

Normal, normal, but you should set
if ($nick == ChanServ) { halt }

 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.