Wow.. Goto's.. Haven't seen them for a while..

Code:
ON *:TEXT:*:?: {
  if ((%msgpro != Disabled) && (%msga > 0)) {
    if ($istok(Q NickServ X W, $nick, 32)) { return }
    if ($($+(%, msg., $nick), 2) == %msga) { 
      .ignore -wnu120 $nick 3
      grcho $nick is ignored for 2 minutes, possible msg flood.
      .notice $nick You are being ignored for 2 minutes, possible msg flood.
    }
    elseif ((%msga > 5) && ($calc(%msga - 3) == $($+(%, msg., $nick), 2))) {
      .notice $nick Slow down a bit.
    }
    inc -u $+ $iif(%msgu > 0, $v1, 60) $+(%, msg., $nick)
  }
}

Ths should do what you're after, and also inhibit the code from multiple-flood-triggering.

It also gets over the issue of someone setting '%msga' low, and thus sending 'Slow down a bit.' way too early.

It also doesn't use ugly GOTO's.. wink

[Typo's edited]

Last edited by Bekar; 10/06/07 09:05 AM.