Docstoc

Flood Protection2

Document Sample
Flood Protection2 Powered By Docstoc
					on *:text:*:#:{
  if ($address($nick,4) == $address($me,4)) { halt }
  set -u3 %flood. [ $+ [ $chan ] $+ ] . [ $+ [ $nick ] ] $calc(%flood. [
$+ [ $chan ] $+ ] . [ $+ [ $nick ] ] + 1)
  if (%flood. [ $+ [ $chan ] $+ ] . [ $+ [ $nick ] ] >= 3) {
    /kick $chan $nick 15,1?- 14,1[+ 15,1]= 0? Dont Flood
  0,1? 15,1=[ 14+] 15-?
    //inc %ban. [ $+ [ $nick ] $+ ] . [ $+ [ $chan ] ] 1
    unset %flood. [ $+ [ $chan ] $+ ] . [ $+ [ $nick ] ]
    if (%ban. [ $+ [ $nick ] $+ ] . [ $+ [ $chan ] ] >= 6) {
      /ban $chan $nick 3
      /ban $chan $nick 5
      /ban $chan $nick 6
      //mode $chan +b $nick
      //timer -o 1 300 //mode $chan -b $nick
      //timer -o 1 300 //mode $chan -b $address($nick,3)
      //timer -o 1 300 //mode $chan -b $address($nick,6)
      //timer -o 1 300 //mode $chan -b $address($nick,5)
      //unset %ban. [ $+ [ $nick ] $+ ] . [ $+ [ $chan ] ]
    }
  }
}
on *:ACTION:*:#:{
  if ($address($nick,4) == $address($me,4)) { halt }
  set -u3 %flood. [ $+ [ $chan ] $+ ] . [ $+ [ $nick ] ] $calc(%flood. [
$+ [ $chan ] $+ ] . [ $+ [ $nick ] ] + 1)
  if (%flood. [ $+ [ $chan ] $+ ] . [ $+ [ $nick ] ] >= 3) {
    /kick $chan $nick 15,1?- 14,1[+ 15,1]= 0? Dont Flood
  0,1? 15,1=[ 14+] 15-?
    //inc %ban. [ $+ [ $nick ] $+ ] . [ $+ [ $chan ] ] 1
    unset %flood. [ $+ [ $chan ] $+ ] . [ $+ [ $nick ] ]
    if (%ban. [ $+ [ $nick ] $+ ] . [ $+ [ $chan ] ] >= 6) {
      /ban $chan $nick 3
      /ban $chan $nick 5
      /ban $chan $nick 6
      //mode $chan +b $nick
      //timer -o 1 300 //mode $chan -b $address($nick,3)
      //timer -o 1 300 //mode $chan -b $address($nick,6)
      //timer -o 1 300 //mode $chan -b $address($nick,7)
      //unset %ban. [ $+ [ $nick ] $+ ] . [ $+ [ $chan ] ]
    }
  }
}

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:0
posted:11/1/2012
language:
pages:1