Alias Away {
if (%away == $null) {
Away $1-
set %reason $$?="Why Are You Going?"
/ame is now away for: %Reason
//set %duration 0
/inc -c %duration
/set %away yes
/window -w @Away
//echo @away This window wil show people who have tried to speak with you while you were away.
/set %nick $me
/nick {Matt}|away
halt
}
if (%away != $null) {
Away
/ame is now back from: %reason Gone For: $duration(%duration)
/unset %reason
/unset %duration
/unset %away
/nick %nick
/unset %people
halt
}
}
on *:text:*:*: {
if (%away == yes) && ($me isin $1- ) {
//notice $nick Sorry $nick I am currently away for: %reason I have been gone for $duration(%duration)
//echo @away $asctime([HH:nn:ss]) < $+ $nick $+ > $1-
}
}