Using the “set -u” I normally would do something like this.
on *:TEXT:!TRIGGER:#channel: {
if (%flood) { return }
set -u10 %flood On
/msg # Flood protection not active.
}
Set’s a variable with a timer for 10 seconds, at which point it decays away… if the variable has a value… just halt/return/stop. Otherwise, set the timer and respond.