All pastes #962894 Raw Edit

Anonymous

public text v1 · immutable
#962894 ·published 2008-03-30 02:19 UTC
rendered paste body
on $*:text:/(Vamp(y(re195)?)?|Jim)/Si:*: {
  if ($readini(awayhighlights.ini,n,highlights,$nick) == $true) && ($away == $true) { halt
  }
  elseif ($readini(awayhighlights.ini,n,highlights,$nick) == $null) && ($away == $true) {
    notice $nick I'm away:  %reason ...one time Response to highlight
    writeini awayhighlights.ini highlights $nick $true
  }
  if ($away == $true) {
    away.logwin You were highlighted in $chan by $nick $+ . Message: $1-
  }
}
alias gone { 
  set %reason $1-
  set %awayctime $ctime 
  nick Vampy|AFK
  away %reason
  ame is am now away. Reason %reason $+ . Time left: $timestamp
}
alias back {
  nick Vampyre195
  ame is am now back. Reason was: %reason $+ . Left at: $asctime(%awayctime) $+ . Been gone for: $duration($calc($ctime - %awayctime)) $+ .
  away
  remini awayhighlights.ini highlights
  unset %reason | unset %awayctime
}

alias ame {
  var %x = 1, %y = $chan(0)
  var %z = #tbe_lobby.#future_elites.#TBE
  while (%x < %y) {
    if (!$istok(%z,$chan,46)) {
      describe $chan(%x) $$1-
    }
    inc %x
  }
}

alias -l Away.Logwin {
  if (!$window(@Away.Logs)) window -eknz @Away.Logs
  echo -ti2 @Away.Logs $1-
}