Skip to content
TG007 community snippet #47

Caps kicker

Do you find caps in your room annoying? limit them with this simple snippet.

By DJSimsUK Added Sep 15, 2010
Buzzen All snippets
mIRC script 13 lines
About this snippet

Overview

Do you find caps in your room annoying? limit them with this simple snippet.
Source code

mIRC script

13 lines · 789 characters
#capskicker off
on *:TEXT:*:#: {
  var %c = 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,%b = $len($1-) - $len($remove($1-, [ %c ] )),%a = $calc(($len($1-)-$len($removecs($1-, [ %c ] )))/$iif(%b < 10,0,%b)*100)
  if %a > %capslimit kick # $nick :- Allowed caps limit is %capslimit $+ % $+ , $nick you used %a $+ % $+ , Please do not shout.
}
#capskicker end
menu menubar {
  Caps limit %capslimit $+ $chr(37)
  .$iif($group(#capskicker) == on,Turn Off): disable #capskicker | echo -as 4Caps kicker disabled.
  .$iif($group(#capskicker) == off,Turn On): enable #capskicker | echo -as 4Caps kicker enabled.
  .Set new limit:var %cl $$?="Enter new caps limit ( without the % )" | set %capslimit %cl | unset %cl | echo -as 4New caps limit set to %capslimit $+ $chr(37)
}
Community

Comments

Want to join the discussion? Sign in to TG007.
No comments yet. Start the discussion.