All pastes #473207 Raw Edit

Untitled

public text v1 · immutable
·published 2007-05-06 03:14 UTC
rendered paste body
alias awaymsg {
  /set %away on
  if ($chan(%i) == #Ryan) { 
    inc %i 
    msg $chan 14I am now 2Away:7 $1- 14Left at: [2 $+ $time(h:nn:ss tt) $+ 14]
    Continue
  }
  /raw away $1-
  /set %awaymsg $1-
  //set %awaytime $ctime
  //set %lefttime $time(h:nn:ss tt)
}

alias backmsg {
  /set %away off
  //set %backtime $duration($calc( $ctime - %awaytime))
  if ($chan(%i) == #Ryan) { 
    inc %i 
    /amsg 14I am now 2Back14 from:7 %awaymsg 14Gone for: [2 $+ %backtime $+ 14] Left at: [2 $+ %lefttime $+ 14]
    Continue
  }
  /raw away
  /unset %awaymsg
  /unset %awaytime
  /unset %awayname
  /unset %lefttime
}