Advertisement
Ford

Mass Highlight - Kick Ban

Apr 12th, 2012
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. On *:text:*:#: {
  2. tokenize 32 $NoDups($strip($replace($1-,$chr(44),$chr(32),$chr(46),$chr(32))))
  3. var %wordcount $numtok($1-,32),%counter 0,%words %wordcount
  4. while (%wordcount) {
  5. if ($gettok($1-,%wordcount,32) ison $chan) { inc %counter }
  6. dec %wordcount
  7. }
  8. if (%counter > 5) && ($calc(%counter / %words) > .7) {
  9. echo 4 -tags Mass Highlighter Detected $address($nick,5) Highlighted %counter nicks On $network $chan @ $fulldate
  10. if (!$regex($nick($chan,$nick).pnick,/^[~!&@%]/)) {
  11. ban -ku300 $chan $nick 2 Mass Highlighter Detected!
  12. }
  13. }
  14. }
  15. alias -l NoDups {
  16. var %NoDups, %count 1
  17. tokenize 32 $1-
  18. while (%count <= $0) {
  19. %NoDups = $addtok(%NoDups,$($+($,%count),2),32)
  20. inc %count
  21. }
  22. return %NoDups
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement