on @*:text:*:#:capscheck $1-
on @*:action:*:#:capscheck $1-
on @*:notice:*:#:capscheck $1-
alias -l capscheck {
var %. ,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,%; $len($remove($1- [ %. ] )),%: $len($1-) - %;
if ($nick !isop #) && ($calc(100*($len($removecs($1- [ %. ] ))-%;)/%:) > 50) && (%: > 5) {
set -e $+(%,c,$chr(32),$int($v1))
inc $+(%,$nick)
if ($($+(%,$nick),2) > 2) {
.msg $chan $nick , You had usage of alot of CAPS in your sentence, 2 minute timeout.
.msg $chan .timeout $nick 120
unset $($+(%,$nick),1)
}
elseif ($($+(%,$nick),2) = 2) {
.msg $chan $nick , You had usage of alot of CAPS in your sentence, Second warning!
.msg $chan /timeout $nick 60
}
else {
.msg $chan $nick , You had usage of alot of CAPS in your sentence, First warning!
.msg $chan /timeout $nick 1
}
}
}