Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hi kelly x long time NO SPEAK
- on @*:text:*:#:{
- ;change the '10' to whatever minimum count you want
- if ($highlightCount($1-, $chan) >= 10) {
- ban -k $chan $nick 2 Mass Highlight Detected
- }
- }
- /* nick count, removing duplicates
- */
- alias highlightCount {
- var %x 1, %line = $strip($1-), %nicks
- while (%x < $numtok(%line, 32)) {
- if ($remove($gettok(%line, %x, 32), $chr(44), @, %, +) ison $2) {
- var %nicks $addtok(%nicks, $v1, 32)
- }
- inc %x
- }
- return $numtok(%nicks, 32)
- }
Add Comment
Please, Sign In to add comment