This is a little script which will tell the user who messages you when you're not there (/away) why you're not there and how long you're away. It also will write the message the user send in the away.txt
on *:TEXT:*:#:{
if ($away) {
if ($me isin $1-) {
msg $nick $chr(91) $+ AutoMessage $+ $chr(93) I Have been Away for $chr(91) $+ $awaytime $+ $chr(93) due to $chr(91) $+ $awaymsg $+ $chr(93)
msg $nick $chr(91) $+ AutoMessage $+ $chr(93) Your Text has been logged and as soon as i get back i will answer to you.
write away.txt Message by $chr(91) $+ $nick $+ $chr(93) : $1-
}
}
}