heres a basic away script i did
here you can put in customized messages for users you want
and put in %exeptions to have the away script keep the message open for you to read instead of closing it when that user messages you
it also displays how long you've been away
i hope this is helpful ^^;;
menu channel {
.$iif($group(#away).status iswm on, AWAY, AWAY )
..AWAY:/set %reason $$?="Why Are You AWAY?" | /ame Is away now Reason: ( $+ %reason $+ ) | set %away.time $ctime | enable #away
...BACK:/ame Is back from ( $+ %reason $+ ) & I was away for $duration($calc($ctime - %away.time)) . | unset %reason | disable #away
}
#away on
on *:OPEN:*:*:{ if ($group(#away).status iswm on) {
var %exeptions = thrall ayrlah azlynka
if ($nick == thrall) {
msg $nick [Auto-AWAY-Message] hello, you.. i am currently not here at the moment but i'll read your message when i'm back
halt
}
if ($nick == azlynka) {
msg $nick [Auto-AWAY-Message] hiyas, Azzy i'm not here but i'll be back to check your messages ^w^
halt
}
if ($nick == ayrlah) {
msg $nick [Auto-AWAY-Message] hello, pretty one.. i am currently away right now but if you'd like to leave a message i'll read it when i'm back ^^
halt
} else {
msg $nick [Auto-AWAY-Message] i'm currently away right now i'll be back later ^^
}
msg $nick so far i was away for $duration($calc($ctime - %away.time))
if ($nick isin %exeptions) {
halt
} else {
close -m $nick
}
}
}
on 1:TEXT:*:#:{ if ($me isin $1-) && ($group(#away).status iswm on) { describe $chan is away - ( $+ %reason $+ ) - It has been $duration($calc($ctime - %away.time)) & I'm still away. | halt }
else { halt }
}
on 1:ACTION:*:#:{ if ($me isin $1-) && ($group(#away).status iswm on) { describe $chan is away - ( $+ %reason $+ ) - It has been $duration($calc($ctime - %away.time)) & I'm still away. | halt }
else { halt }
}
#away end