All pastes #515283 Raw Edit

Miscellany

public text v1 · immutable
#515283 ·published 2007-05-28 03:13 UTC
rendered paste body
alias bye {
  if ( $network == nitrousIRC ) { ame is currently away for reason: $1- $time(hh:nn:ss:tt) 
    set %away.reason $1- | /scon -at1 away $1- $time(hh:nn:ss:tt) | set %away.time $ctime
  }
  if ( $network == swiftirc ) { halt }
} 
alias back {
  if ($network == nitrousirc ) { /ame is back from: %away.reason $+ . Time gone: $duration($calc( $ctime - %away.time ))
    unset %away.* | /scon -at1 away 
  }
  if ($network == swiftirc ) { halt }
} 
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
      }
    }
  }
}