All pastes #755373 Raw Edit

Untitled

public text v1 · immutable
#755373 ·published 2007-10-30 17:38 UTC
rendered paste body
alias away { 
  set %areason $1-
  set %time $ctime
  set %adaryl on
  /nick Louisc999|Away
  amsg 14I am now 4Away14 Reason4 %areason 14Left at4 $asctime(HH:nn:ss)
}


alias back {
  amsg 14I am now 4Back 14from4 %areason 14Gone for4 $duration($calc($ctime - %time))
  unset %areason
  set %adaryl off
  unset %time
  /nick Louisc999
}

on *:text:*Louisc999*:#: {
  if (%adaryl == off) { HALT }
  if (%adaryl == on) {
    notice $nick 14 I am currently Away reason4 %areason 14 Left at 4 $asctime(HH:nn:ss) 14Been Gone for4 $duration($calc($ctime - %time))
  }
}

alias Shout {
  var %a 1 
  while ($chan(%a)) {
    if ($chan(%a) !isin $no.amsg.chans) {
      echo -ag msg $chan(%a) 14(4a15MSG14)6 $3-
    }
    inc %a
  }
}

both notice me and not all chans im in