All pastes #444781 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-04-17 14:40 UTC
rendered paste body
if ($1 == timer) {
  if ($2 == add) {
    timer $+ $3 0 $5 msg $4 $6-
    notice $nick Timer $+ $3 added.
  }
  if ($2 == del) {
    timer $+ $3 off
    notice $nick Timer $+ $3 removed.
  }
  if ($2 == list) {
    if ($timer(0) > 0) {
      var %x = 1
      while (%x <= $timer(0)) {
        notice $nick Timer %x $+ :  Name: $timer(%x) $+ .  Delay in seconds: $timer(%x).DELAY $+ .  Command: $timer(%x).COM
        inc %x
      }
    }
    else {
      notice $nick No current timers are active.
    }
  }
}