A Good Ban Protection..

By CRadle_of_filth on Mar 23, 2004

My Ban Protection...
This Ban Protection snippet is borrowed from some other code from Hawkee fourms
This is a Simple Worked out Ban Protection Snippet...
This Ban Protection has been test and works great!

The Following Services you need in the server:
Chanserv

on ^1:ban:#:{ 
  if ($banmask iswm $address($me,0)) { if ($nick == $me) { mode $chan -b $banmask | echo $echo 4,1Lamer Dected  } | else { echo $chan 3*** $nick sets mode: +b $banmask | echo -a 7Be Careful $me $+ :1 ( $+ 5 $+ $banmask $+ 1) 14is on your address! ( $+ $nick $+ / $+ $Address($nick,0) $+ ) 12Was Trying To Ban You On1 ( $+ 14 $+ $chan $+ 4/ $+ 10 $+ $time $+  $+ 1) | if ($me isop $chan) mode $chan -bov+b $banmask $nick $nick $address($nick,2) |   msg Chanserv deprotect # $nick | kick # $nick Dont Try Again Lamer |  halt } }  
  if ($banmask iswm $address($me,3)) { if ($nick == $me) { mode $chan -b $banmask | echo $chan 4,1Lamer Dected } | else { echo $chan 3*** $nick sets mode: +b $banmask | echo -a 7Be Careful $me $+ :1 ( $+ 5 $+ $banmask $+ 1) 14is on your address! ( $+ $nick $+ / $+ $Address($nick,0) $+ ) 12Was Trying To Ban You On1 ( $+ 14 $+ $chan $+ 4/ $+ 10 $+ $time $+  $+ 1) | if ($me isop $chan) mode $chan -bov+b $banmask $nick $nick $address($nick,2) |  msg Chanserv deprotect # $nick | kick # $nick Dont Try Again Lamer | | halt } } 
  if ($banmask iswm $address($me,5)) { if ($nick == $me) { mode $chan -b $banmask | echo $chan 4,1Lamer Dected  } | else { echo $chan 3*** $nick sets mode: +b $banmask | echo -a 7Be Careful $me $+ :1 ( $+ 5 $+ $banmask $+ 1) 14is on your address! ( $+ $nick $+ / $+ $Address($nick,0) $+ ) 12Was Trying To Ban You On1 ( $+ 14 $+ $chan $+ 4/ $+ 10 $+ $time $+  $+ 1) | if ($me isop $chan) mode $chan -bov+b $banmask $nick $nick $address($nick,2) |  msg Chanserv deprotect # $nick | kick # $nick Dont Try Again Lamer |  halt } }   
  if ($banmask iswm $me $+ !*@*) { if ($nick == $me)  { mode $chan -b $banmask | echo $chan 4,1Lamer Dected  } | else { echo $chan 3*** $nick sets mode: +b $banmask | echo -a 7Be Careful $me $+ :1 ( $+ 5 $+ $banmask $+ 1) 14is on your address! ( $+ $nick $+ / $+ $Address($nick,0) $+ ) 12Was Trying To Ban You On1 ( $+ 14 $+ $chan $+ 4/ $+ 10 $+ $time $+  $+ 1) | if ($me isop $chan) mode $chan -bov+b $banmask $nick $nick $address($nick,2) | msg Chanserv deprotect # $nick | kick # $nick Dont Try Again Lamer |  halt } } 
}
on *:RAWMODE:#:{
  if (($1 == -a) && ($2 == $me)) { .msg ChanServ PROTECT $chan $2 | .msg ChanServ op $chan $2  }
}

Comments

Sign in to comment.
Abtehi   -  Nov 12, 2008

Can someone get this thing to work on X for UNDERNET Servers?

Thank.

 Respond  
[-DDC-]Darkness   -  Jan 06, 2008

Hm. This script works pretty well. You should put on a invite thingy though, as well, just incase you do get banned before anything happens, ya know? But, yeah....Good job.

 Respond  
ermansanidhya   -  Aug 23, 2007

dont work on ban kick :)

 Respond  
Noutrious   -  Feb 25, 2006

Ehh.. This would be much better with:
on ^1:ban:#:{
if ($banmask iswm $address($me,3)) || ($banmask iswm $address($me,2)) || ($banmask iswm $address($me,1)) {
.msg chanserv unban $chan $me
.join $chan
.ban -k $chan $nick Had enought?
halt
}

 Respond  
motoxlover13   -  Oct 25, 2004

where do i put this code?

 Respond  
CRadle_of_filth   -  Apr 05, 2004

Sorry for my coding problems.. :(

 Respond  
ghmm   -  Mar 29, 2004

ever heard of $+()? sheesh...

 Respond  
sailoreagle   -  Mar 24, 2004

You don\'t need to check against all of those address types... a wildcard match check against the full mask (address type 5, which is nick!ident@host) will catch all banmasks that match you. I\'d also suggest using linebreaks rather than pipes ( | ), they keep multiline code much tidier :) Also, if you use network-specific commands (not all networks have chanserv, and not all networks with chanserv have protect and deprotect), you should specify what network they\'re for.

 Respond  
CRadle_of_filth   -  Mar 23, 2004

For Any Problems Please E-Mail Me at CRadle_of_filth1@msn.com Thank you :)

 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.