alias -l c { return $+($chr(3),10,$1-,$chr(3)) }
alias floodprot {
if ($address($me,2) == $address($nick,2) { return } ;change this to whatever way you identify yourself i.e. if ($address($me,2) == $address($nick,2)).. this is so your bot wont ignore you
var %fname = $($+(flood.,$2,.,$address($1,2)),2)
hadd -mu30 %fname $calc($hget(%fname,0).item +1) 1
if ($hget(%fname,0).item > 3) {
notice $nick $logo Adding you to Ignore list for $c(5) minutes. ;remove $logo if you want, or change it to whatever your bots' logo alias is
.ignore -pcntikdu300 $1 2 $2
hfree %fname
return flooded
}
if ($3 == i) { hadd -mu30 %fname $calc($hget(%fname,0).item +1) 1 | hadd -mu30 %fname $calc($hget(%fname,0).item +1) 1 } ;thats for invites, i weighted them higher than normal command spamming
}