on *:TEXT:!set*:*:{ if ($nick == Jordan-[Dec_cal]) || ($nick == [-Mod-Declan-]) {
if ($1 == !setaway) {
set %awayis on
set %away $2-
set %time $time
set %time2 $asctime
/away %away
/amsg I'm now away [Reason: %away ] Left at: %time GMT+1
}
if ($1 == !setback) {
/amsg I'm now back from: %away ~~ I've been gone for $duration($calc(($ctime - $ctime(%time2)))) ~~
unset %away
unset %time
unset %time2
unset %awayis
}
}
}
on *:TEXT:*Jord*:*:{ if (%awayis == on) { notice $nick Jordan is away for the reason: %away } }
on *:TEXT:*Dec*:*:{ if (%awayis == on) { notice $nick Dec is away for the reason: %away } }