All pastes #467281 Raw Edit

Stuff

public text v1 · immutable
·published 2007-05-02 12:56 UTC
rendered paste body
On me:*:JOIN:#: {
  set -u10 %active [ $+ [ $me ] ] [ $+ [ $chan ] ] on
  timeractive $+ $me $+ $chan 0 5 activesjekk $me $chan 
}

On $*:TEXT:/^[@!.]/Si:#: {
  set -u10 %active [ $+ [ $me ] ] [ $+ [ $chan ] ] on
}
Alias activesjekk {
  if (%active [ $+ [ $1 ] ] [ $+ [ $2 ] ] == on) {
    halt
  }
  elseif (%active [ $+ [ $1 ] ] [ $+ [ $2 ] ] == $null) { 
    part $2 14No activity in 1 hour, parting...
    timeractive $+ $me $+ $2 off
    halt
  }
}