Jethro commented on a Page, Simple away script  -  May 29, 2010

There's nothing regex about the codes napa showed you above.> on :TEXT:Prefix[aFK]:#:{
notice $nick I'm currently away with the reason: %reason - Auto Message on: Prefix[aFK].
}
on
:ACTION:Prefix[aFK]:#:{
notice $nick I'm currently away with the reason: %reason - Auto Message on: Prefix[aFK].
}can turn into this:

on $*:text:$(/\Q $+ $me $+ \E$/iS):#:simpleaway
on $*:action:$(/\Q $+ $me $+ \E$/iS):#:simpleaway
alias -l simpleaway {
  if (!%f && $away) {
    inc -u5 %f
    notice $nick I'm currently away with the reason: %reason - Auto Message on: prefix[afk]
  }
}

This way, you don't need to reiterate the notice twice in each event. You need a trigger control so that you don't get bombarded with trigger flood.

 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.