Cacao7w7

xl

Jun 27th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. # by Tris, 22jun96
  2. # kicks people who use excessive caps (over 30 chars), and flood
  3. # bots/scripts which send long lines without any spaces...
  4. # subida por Sediton de la red irc.dal.net canal #tcls nicks: sedition y Arnold_X-P
  5.  
  6. bind pubm - * caps_pubm
  7. proc caps_pubm {nick uhost hand chan text} {
  8. if [matchattr $hand f] {return 0}
  9. set upper 0
  10. set space 0
  11. foreach i [split $text {}] {
  12. if [string match \[A-Z\] $i] {
  13. incr upper
  14. }
  15. if {$i == " "} {
  16. incr space
  17. }
  18. }
  19. if {$upper > 18} {
  20. putserv "KICK $chan $nick :No mayusculas por favor, las mayusculas significa Gritar en \2$chan\2 1\[4BANNED1\].Para saber nuestras reglas tipea !reglas en el canal abierto"
  21. }
  22.  
  23. if {$space == 0 && [string length $text] > 30000} {
  24. putserv "KICK $chan $nick :flood Para saber nuestras reglas tipea !reglas en el canal abierto"
  25. halt
  26. }
  27.  
  28. if {$upper > 7} {
  29. putserv "notice $nick :Desactiva tus mayusculas por favor \2$nick\2 las mayusculas significa Gritar en \2$chan\2..evita ser pateado del canal"
  30. }
  31. }
  32. putlog "tcl de anti mayusculas autor Tris v. 1.0 subido por el staff de #tcls en DALnet"
Add Comment
Please, Sign In to add comment