flooder ignore/ban

By sukhbira on May 02, 2014

if you are not op and someone floods/repeating its easy to ignore that automatically,

on *:text:*:#: {
  if ($nick ison $chan) { 
    VAR %text = $hash($strip($1-),32) 
    IF ($len($strip($1-)) >= 9 ) {
      VAR %old.text = %rp. [ $+ [ $chan ] $+ . $+ [ $nick ] ]
    VAR %old.text = $deltok(%old.text,1,46) }
    IF ((%rp. [ $+ [ $chan ] $+ . $+ [ $nick ] ] == $null) || (%old.text != %text)) {  
      SET -u790 %rp. [ $+ [ $chan ] $+ . $+ [ $nick ] ] 1. $+ %text 
      RETURN
    }
    VAR %temp = %rp. [ $+ [ $chan ] $+ . $+ [ $nick ] ]
    VAR %count = $gettok(%temp,1,46)
    INC %count
    SET -u60 %rp. [ $+ [ $chan ] $+ . $+ [ $nick ] ] %count $+ . $+ %text
    IF (%count >= 5) {
      if ($me isop $chan) { 
        mode # +f *4:2
      ban  $chan $address($nick,0) }
      else {  ignore -u70 $address($nick,0) }
      .timer0 1 1 msg $chan 4 Flood Detected ..Ignored for 1min12┌∩┐4(◣_◢)
    }
  }
}

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.