Advertisement
westor

Caps Flood Protect for Aabye v1.0

Dec 30th, 2015
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.57 KB | None | 0 0
  1. ON *:TEXT:*:#: {
  2.   var %op = $msgtags(user-type).key
  3.   var %sub = $msgtags(subscriber).key
  4.   if (%op) || (%sub) { return }
  5.   if ($len($1-) < 9) { return }
  6.   var %text = $strip($remove($1-,$chr(32)))
  7.   var %non.caps = $len($removecs(%text,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,Æ,Ø,Å))
  8.   var %full.line = $len($strip($remove(%text,$chr(32))))
  9.   var %percent = $calc(1 - (%non.caps / %full.line))
  10.   if (%percent >= 0.6) {
  11.     .msg $chan .timeout $nick 1
  12.     .msg $chan $nick Ingen capslock tak. [Advarsel]
  13.     .timer 1 2 .msg $chan .timeout $nick 1
  14.   }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement