he is useing the antiflood alias from the first snippet he posted that Pickle made
this is from that snippet
alias -l antiflood {
if (%antiflood == on) { halt }
set %antiflood on | timeranti 1 5 unset %antiflood
}
and for one useing the switch -l
If you specify the -l switch in the alias definition, the alias becomes accessible only by commands in the same script and invisible to the command line and other scripts.
you could just do
alias antiflood { if (!$($+(%,antiflood,.,$1),2)) { set -u5 $+(%,antiflood,.,$1),2)) on } | else { halt } }
then in ur codes use
$antiflood($1)