napa182 commented on a Page, Away Snippet  -  Sep 09, 2010

no need to set vars at all also why are you using $ in ur on action and text events if you are using a wildcard ie *
you need to ad some kind of flood pro to it or risk being flooded

=/

maybe something like this
Oh and this one will set you away & back.

menu Channel {
  . $iif(!$away,Away,Back): away $iif(!$away,$$?"What is your away Reason?")
}
on $*:text:$(/\Q $+ $me $+ \E\b/iS):#:{ $awaynotice($nick) }
on $*:action:$(/\Q $+ $me $+ \E\b/iS):#:{ $awaynotice($nick) }
alias -l awaynotice {
  if ($away && !$hget(away,$1)) { 
    hinc -mu10 away $1
    .notice $nick .:[ I am away ]:. .:[ I Have Been Gone For: $duration($awaytime) ]:. .:[ My Current date & time: $time(m/d/yy h:nn tt) ]:. .:[ Reason: $awaymsg ]:.
  }
}

anyways ur snippet as is has a lot of unnecessary coding along with redundancy. as is id give it a 2/10

 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.