bugyou commented on a Page, Simple multi network away script  -  Dec 05, 2008

I had to change a bit for it to work

alias away {
/set %reason. [ $+ [ $network ] ] $1-
/set %away.1. [ $+ [ $network ] ] $ctime
/set %awayscript. [ $+ [ $network ] ] on
/me I am now away. $1- $+ .
}
alias back {
if (%awayscript. [ $+ [ $network ] ] == on) {
/me I am back from %reason. [ $+ [ $network ] ] $+ . I was away for $duration($calc($ctime - %away.1. [ $+ [ $network ] ] ))
/unset %reason. [ $+ [ $network ] ]
/unset %away.1. [ $+ [ $network ] ]
/set %awayscript. [ $+ [ $network ] ] off
}
}
on *:text:**:#: {
if $1 != $me $+ ? { halt }
if (%awayscript. [ $+ [ $network ] ] == on) {
/notice $nick I am currently away. Reason: %reason. [ $+ [ $network ] ] $+ . I have been away for $duration($calc($ctime - %away.1. [ $+ [ $network ] ] ))
}
}

 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.