Jethro commented on a Page, Flood Protection  -  Jul 19, 2011

tttwebsite wrote:> can you put in warnings please so that it will send a notice to stop doing it like give three warnings thin kick then ban please

on @*:text:*:#: warn $1-
on @*:action:*:#: warn $1-
on @*:notice:*:#: warn $1-
alias -l warn {
  if (%flood. [ $+ [ # ] ] == on) {
    inc -u5 %flood. [ $+ [ $wildsite ] ]
    if (%flood. [ $+ [ $wildsite ] ] >= 5) {
      hinc -m w $wildsite
      if ($hget(w,$wildsite) > 3) {
        ban -ku600 # $nick 2 Flood Protection activated! $&
          This ban will expire in 10 minutes. | hdel w $wildsite | return
      }
      goto $v1
      :3 | notice $nick Please get your act together. This is your last warning! | halt
      :2 | notice $nick Please stop flooding. This is your 2nd warning! | halt
      :1 | notice $nick No flooding please!
    }
  }
}
 Respond  
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.