Channel Flood and Caps Protection

By Hitman| on May 04, 2008

This is for when there are some idiots typing in caps like morons and people flooding like they have nothing better to do, it helps out in big channels, have fun with it.

on *:TEXT:*:#lobby:{
  if (%protections == on) {
    if ($nick isop $chan) { halt }
    if (%flood2. [ $+ [ $wildsite ] ] == $null) {
      set -u5 %flood2. [ $+ [ $wildsite ] ] 2
    }
    elseif (%flood2. [ $+ [ $wildsite ] ] >= 5) {
      kick $chan $nick Do Not Flood In $chan Again, $nick .
      unset %flood2. [ $+ [ $wildsite ] ]
    }
    else { inc -u5 %flood2. [ $+ [ $wildsite ] ] }
  }
}
on *:text:*:#lobby:{
  if (%protections == on) {

  if ($nick isop $chan) { halt }
  if ( $len($1-) >= 10 ) {
  if ( $calc($regex($1-,/[A-Z]/g) / $regex($1-,/[A-Z]/gi) * 100) >= 70 ) kick # $nick  $v1 $+ % Caps $nick . Lower them please! | //write KickLogs.txt ( $+ $date $+ - $+ $time $+ ) $nick $address $chan $+ , Kicked for Caps. [Caps]: $1- }
}
}
alias Protections {
if ($2 == on) { set %protections on | echo -a Protection is now on }
if ($2 == off) { set %protections off | echo -a Protection is now off. }
}

Comments

Sign in to comment.
criminal   -  May 06, 2008

all is Wrong plz Fix it :) and why u forget the Chanel name -> on :text::#lobby:{ <-
its not working the snippet wrong thx^^

Dude, ... You gotta be kidding me...
This all is just a little more then \" Basic \", if you want it to work, Type:

On *:TEXT:*:#: { 
Instead of:
On *:TEXT:*:#Lobby {
 Respond  
SweeTCooL   -  May 05, 2008

all is Wrong plz Fix it :) and why u forget the Chanel name -> on :text::#lobby:{ <-
its not working the snippet wrong thx^^

 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.