All pastes #592909 Raw Edit

Miscellany

public text v1 · immutable
#592909 ·published 2007-06-28 00:22 UTC
rendered paste body
on *:text:!away*:#:{
  if ( %away. [ $+ [ $nick ] ] ) {
    notice $nick You are currently away at the moment
  }
  else {
    /set %time. $+ $nick $asctime  
    /set %away. $+ $nick on
    if ($2- == $null) {
      /set %reason. $+ $nick none
    }
    else {
      /set %reason. $+ $nick $2-
    }
    /ame $nick is Now Away: Reason: %reason. [ $+ [ $nick ] ] Left at: %time. [ $+ [ $nick ] ] 
  }
}
on *:text:!back*:#:{
  if ( %away. [ $+ [ $nick ] ] ) {
    ame $chan $nick is back . Reason: %reason. [ $+ [ $nick ] ] Left at: %time. [ $+ [ $nick ] ] Gone for $duration($calc(($ctime - $ctime( %time. [ $+ [ $nick ] ] ))))
    /unset %away. $+ $nick
    /unset %reason. $+ $nick 
    /unset %time. $+ $nick
  }
  else {
    notice $nick You arent currently set to away
  }
}