Public paste
Undefined
By: jew | Date: Jan 2 2007 19:16 | Format: None | Expires: never | Size: 430 B | Hits: 1360

  1. on *:TEXT:*:#:{
  2. if (!%flood.prot. [ $+ [ $nick ] ]) { set -u2 %flood.prot. $+ $nick 1 }
  3. else {
  4.   inc %flood.prot. [ $+ [ $nick ] ]
  5.   if (%flood.prot. [ $+ [ $nick ] ] >= 3) {
  6.     writeini -n database/kick.ini kickcounter kickNo $calc($readini(database/kick.ini,1,kickcounter,kickNo) + 1)
  7.     ban -ku3600 $chan $nick BANNED for 1 hour - reason : flooding - Id : $readini(database/kick.ini,1,kickcounter,kickNo)
  8.  }
  9. }
  10. }