All pastes #492114 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-05-17 00:47 UTC
rendered paste body
ON *:INPUT:*: {
  if ($1 == .away) { 
    set %awayctime $ctime 
    set %awaytime $asctime(hh:nn:ss TT) 
    set %reason $2- 
    set %away on
    /away %reason
    /write away.txt $ctime
    /amsg *** $me is Away - Reason: %reason - Left at: $asctime(hh:nn:ss TT) *** 
  } 
  if ($1 == .back) { 
    /amsg *** $me is Back - Reason left: %reason - Left at: %awaytime - Time gone: $duration($calc($ctime - $read(away.txt))  - Time Now: $asctime(hh:nn:ss TT) 
    unset %awaytime 
    unset %reason 
    set %away off
  } 
}