napa182 commented on a Page, Weasel's Random stuff  -  Apr 29, 2009

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)
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.