Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- On *:text:*:#: {
- tokenize 32 $NoDups($strip($replace($1-,$chr(44),$chr(32),$chr(46),$chr(32))))
- var %wordcount $numtok($1-,32),%counter 0,%words %wordcount
- while (%wordcount) {
- if ($gettok($1-,%wordcount,32) ison $chan) { inc %counter }
- dec %wordcount
- }
- if (%counter > 5) && ($calc(%counter / %words) > .7) {
- echo 4 -tags Mass Highlighter Detected $address($nick,5) Highlighted %counter nicks On $network $chan @ $fulldate
- if (!$regex($nick($chan,$nick).pnick,/^[~!&@%]/)) {
- ban -ku300 $chan $nick 2 Mass Highlighter Detected!
- }
- }
- }
- alias -l NoDups {
- var %NoDups, %count 1
- tokenize 32 $1-
- while (%count <= $0) {
- %NoDups = $addtok(%NoDups,$($+($,%count),2),32)
- inc %count
- }
- return %NoDups
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement