Public paste
Undefined
By: qsfsqf | Date: Jan 2 2007 19:04 | Format: None | Expires: never | Size: 422 B | Hits: 1330

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