Ban protection

By Ville on Mar 28, 2005

A simple ban protection

menu nicklist {
  -
  Protection
  .on:/set %ban on | echo Ban protection on | .enable #protect
  .off:/set %ban off | echo Ban protection off | .disable #protect
  -
}
#Protect on
on *:ban:*:{
  if ($banmask == $address($me,1)) && (%Ban == on) {
    if ($nick == $me) { halt }
    if ( $me !isop $chan ) { halt }
    if ( $me !isop $chan ) { halt }
    else { set %Banick $nick | chanserv unban $chan $me | join $chan | ban $chan $nick 3 | kick $chan %Banick Don't try and ban me
    }
  }
}

Comments

Sign in to comment.
asmssl0812   -  Aug 01, 2006

i\'ve copied it and paste it on remote..but still appear message :

channel_name can\'t join channel (addess is banned)

What should I do... here the content of my remote :

prot off

on @1:DEOP:#: { if ($opnick == $me) && ($me isop $chan) { /cs op $chan $me | /mode # +b $nick | /kick # $nick Deop Protection }
}
on @1:kick:#: { if ($knick == $me) && ($me isop $chan) { /join # | /mode # -o $nick | /mode # +b $nick | /kick # $nick Kick Protection }
}
on @1:ban:#: { if ($bnick == $me) && ($me isop $chan) { /cs unban # | /mode # -b $bnick | /mode # -o $nick | /mode # +b $nick | /kick # $nick Ban Protection }
}

prot end

menu channel,status,menu,nicklist {
-=[ Protections ]=-
.On:/enable #prot
.Off:/disable #prot
}

menu nicklist {

Protection
.on:/set %ban on | echo Ban protection on | .enable #protect
.off:/set %ban off | echo Ban protection off | .disable #protect

}

Protect on

on :ban::{
if ($banmask == $address($me,1)) && (%Ban == on) {
if ($nick == $me) { halt }
if ( $me !isop $chan ) { halt }
if ( $me !isop $chan ) { halt }
else { set %Banick $nick | chanserv unban $chan $me | join $chan | ban $chan $nick 3 | kick $chan %Banick Don\'t try and ban me
}
}
}

on 1:KICK:#: {
if ($knick == $me) {
timer 1 3 kick $chan $nick REVENGE(Maybe this will teach you?)
timer
}
}

Is there an error statement or bad script ??
Please .... the correction..
\
Thanks

 Respond  
naja   -  Mar 29, 2005

on *:ban:#:{ if ($banmask iswm $address($me,5)) && ($me isop $chan) && ($nick != $me) && (%Ban == on) { ban $chan $nick 3 | kick $chan $nick Don\'t try and ban me } }

 Respond  
xDaeMoN   -  Mar 28, 2005

\"if ($banmask == $address($me,1))\"? What if you were banned using a d ifferent mask type? You should use \"$banmask iswm $address($me,5)\". Also the right format for the ban event is \"on @*:BAN:#:\" though yours would still work. The \"@\" would check if you\'re an OP in the channel.

 Respond  
ch1zra   -  Mar 28, 2005

why the double check : \" if ($nick == $me) { halt }\" ?? you could have done it by simply checking if you are OP, insted of checking if you\'re not. besides that, it looks cool.

 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.