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. }
}