All pastes #510129 Raw Edit

Something

public text v1 · immutable
·published 2007-05-25 19:29 UTC
rendered paste body
alias bye {
   /ame is currently away for reason: $1- $time(hh:nn:ss:tt)
  set %away.reason $1- 
   away $1- $time(hh:nn:ss:tt)
  set %away.time $ctime

}



alias back {
   /ame is back from: %away.reason $+ . Time gone: $duration($calc( $ctime - %away.time ))
   away
  unset %away.*
}
on *:Text:*:*: {
  if (%away.reason != $null) {
    if (%away. [ $+ [ $nick ] ] != $nick) {
      if ($me isin $1- ) { notice $nick I am currently away for reason: %away.reason I have been gone for $duration($calc( $ctime - %away.time )) This is a one time notice. Please leave me a message by using /msg $me <message>. Thank you.
        set %away. [ $+ [ $nick ] ] $nick
      }
    }
  }
}