All pastes #369911 Raw Edit

Stuff

public text v1 · immutable
#369911 ·published 2007-02-24 03:40 UTC
rendered paste body
on *:text:!floodon:#:{ 
  if ($nick isop $chan) || ($nick ishop $chan) || ($nick == Terror_nisse) { 
    if (%floodchan) {
      notice $nick 14flood protection is already on for4 $chan 
    }
    else {
      set %floodchan $addtok(%floodchan,$chan,44) 
      msg $chan 14Flood protection is now on for4 $chan 
    } 
  }
}
on *:text:!floodoff:#:{ 
  if ($nick isop $chan) || ($nick ishop $chan) || ($nick == Terror_nisse) {
    if (%floodchan) {
      set %floodchan $remtok(%floodchan,$chan,1,44) 
      msg $chan 14Flood protection is now off for4 $chan 
    } 
    else {
      notice $nick 14Flood protection is already turned off for4 $chan
    } 
  }
}
on *:text:*:%floodchan: { 
  if $nick !isop $chan { 
    hadd -mu10 chanflood $+($nick,.,$chan,.,$ticks) 1 
    if ($hfind(chanflood,$+($nick,.*),0,w) > 4) { 
      notice $nick Dont Flood $me !!! I will ignore you for 15 min.
      /ignore $nick
      timer 1 899 /ignore -r $nick
      timer 1 900 notice $nick I aint ignoreing you anymore.
    } 
  } 
}