napa182 commented on a Page, Rude Slap  -  Aug 05, 2010

If you want both the menu and a trigger it would be better to replace

menu nicklist {
  .Rude Slap $+([,$$1,]):{
    if ($sock(ins)) sockclose ins
    sockopen ins www.beleaguer.com 80
    sockmark ins describe # slaps $$1 around abit with a
  }
}

with

on $*:text:/^!slap\s(\S+)$/iS:#:if ($regml(1) ison #) rude_slap # $v1
alias -l rude_slap {
  if (!%f) {
    inc -u5 %f
    if ($sock(ins)) sockclose ins
    sockopen ins www.beleaguer.com 80
    sockmark ins describe $1 slaps $2 around abit with a
  }
}
menu nicklist {
  .Rude Slap $+([,$$1,]):rude_slap # $$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.