Public paste
Undefined
By: dsgdsg | Date: Dec 28 2006 21:43 | Format: None | Expires: never | Size: 470 B | Hits: 1404

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