So, I'm using the following, but would also like to add a flood protection to the command/on:text itself. Tried to search for it, and though I've found a few items on it, it doesn't make much sense to me. Anyone can clarify it a bit, or help me at all would be most appreciated.

Code
ON *:TEXT:*!play*:#:{
  if (!$ialmark($nick,$+($chan,.greeted))) {
    .ialmark -n $nick $+($chan,.greeted) 1
    .timer 1 $rand(2,5) msg $unsafe($chan !play)

    ;== Uncomment below to make it trigger only once per nick within 600ms...
    $+(.timer,$chan,.,$nick) 1 180 .ialmark -rn $nick $+($chan,.greeted)
  }
}

Could something like this work instead?

Code
on $*:text:/(!play)$/i:#: {
  if ((%flood) || ($($+(%,flood.,$nick),2))) { return } && ($nick == nick)
  set -u180 %flood On
  set -u220 %flood. $+ $nick On
  { msg $chan !play }
}

Last edited by Majeye; 22/02/23 07:15 PM.