All pastes #132632 Raw Edit

Someone

public text v1 · immutable
#132632 ·published 2006-08-15 11:47 UTC
rendered paste body
ALIAS BotIgnore {
  echo -a * inside botignore
  IF ($($+(%,ignore.,$Address($1,3)),2) >= 5) {
    echo -a * Ignoring $1
    .notice $1 [4Command Flood]: 5 Commands used in 10 seconds. I'm ignoring you for 5 minutes.
    Ignore -u300 $1 3
  }
  ELSEIF ($($+(%,ignore.,$Address($1,3)),2)) {
    echo -a * Increasing
    INC $+(%,ignore.,$Address($1,3))
  }
  ELSE {
    echo -a * setting var
    SET $+(%,ignore.,$Address($1,3)) 1
    $+(.Timer,$Address($1,3)) 1 10 UNSET $+(%,ignore.,$Address($1,3))
  }
  RETURN $null
}

on *:text:!test:#:{
  BotIgnore $nick
  msg $chan Testing!
}