Just a simple snippet
right click then select go away and folow the prompt's
Menu * {
Away SYS
.Go Away: {
Set %mainnick $me
set %awaynick $me $+ `Away
set %time $time(hh:nntt)
set %away.reason $?="Set away reason:"
if (!%away.reason) {
echo I'm sry but you need to set an away reason
halt
}
away %away.reason
nick $me $+ `Away
describe $active I have left at %time Due to: %away.reason
}
.Come Back: {
if ( %mainnick == $me ) { set %mainnick $?="Seem to have a error here input your main nick" }
nick %mainnick
describe $active I have come back from doing: %away.reason I have been away since %time and have been away for $duration($awaytime)
away
unset %away.reason
unset %time
unset %mainnick
}
}
on *:OPEN:?:*: {
if ( %away.reason ) {
window @Away.Blocker
aline -l @Away.Blocker ( $+ $time(hh:nntt) $+ ) $nick $+ : $1-
write Away.log.txt ( $+ $time(hh:nntt) $+ ) $nick $+ : $1-
msg $nick im sry $nick but since im away im not accepting query's... But your msg as been logged for me to read later :)
close -m $nick
}
on *:TEXT:*:#: {
If ( %awaynick isin $1- ) {
notice $nick Im sorry but i seem to be away
notice $nick :Stat's: %break Away Reason: %away.reason %break Left at: %time %break Time Away: $duration($awaytime) %break
}
OK... for example, when the person comes back: \"ame i have come back from doing: %away.reason i have been away since %time and have been away for $duration($awaytime)\". Every time somebody goes afk and sets an \"amsg\" or \"ame\" it places it in every channel the person is on. If I shared 20 channels with that person I\'d be getting pretty annoyed at seeing the away and come back msg in every channel. Personally, I prefer it to operate on something like a nick response, where if the nick or part nick is said in a chan then the person who says the nick gets a notice or msg that has the away message. The nick change to mainnick|afk or something similar will give the general idea a person is away rather than sending to all channels on away or return. Thats what I meant... I hope its of some help to you.
\"Well, its not that good. WHat if you dont input a reason? Will it saw \"Left due to: \"..?\"
That has been fixed thx for letting me know about that
And |MELIORITE| i\'m sorry but i don\'t quite understand what you mean by that..
I guess i could use msg $active but thats just as annoying...
And i guess i could set %away as something more unique..
but for it to go off you would have to click go away since its a popup