All pastes #459703 Raw Edit

Unnamed

public text v1 · immutable
#459703 ·published 2007-04-26 17:01 UTC
rendered paste body
alias floodprot {
  inc %cc [ $+ [ $me ] ]
  if ($readini(staff.ini,staff,$address($nick,2))) { return }
  var %fname $+ $me = $($+(flood.,$2,.,$address($1,2)),2)
  hadd -mu8 %fname $+ $me $calc($hget(%fname $+ $me,0).item +1) 1
  if ($hget(%fname $+ $me,0).item > 4) {
    notice $nick 12[14Ignore12]14 Adding you to ignore list for12 5 14minutes. 
    ignore -u300 $1 2 $2
    hfree %fname $+ $me
    return flooded
  }
} 
Alias check {
  var %x = 1
  while (%x <= $hget(0)) {
    if ($hget(%x,0).item == 0) { hfree $hget(%x) }
    inc %x
  }
} 

Alias illegalcheck {
  if ($chr(36) isin $1-) || ($chr(38) isin $1-) {
    notice $nick 12[14Bot Exploit12] 14Attemption at box exploiting prevented.
    halt
  }
}