All pastes #503474 Raw Edit

Stuff

public text v1 · immutable
·published 2007-05-22 21:50 UTC
rendered paste body
if ($2 == timedmsg) {
  if (!$3) {
    notice $nick %skin1 Timedmsg %skin2 You did not provide what to message the channel. %skin3
    halt 
  } 
  if ($4 == off) {
    var %x = 1
    while ($gettok($3,%x,44)) {
      if (!% [ $+ [ $+(timer.,$v1) ] ]) {
        msg $chan %skin1 Off %skin2 The timer(s) you supplied aren't set. %skin3
        halt
      }
      else {
        unset %timer. [ $+ [ $gettok($3,%x,44) ] ]
        timer. $+ ($gettok($3,%x,4) off
        msg $chan %skin1 Off %skin2 Turned timer off. %skin3
        halt
      }
      inc %x
    }
  }
  else {
    var %x = 1
    while ($gettok($3,%x,44)) {
      set %timer. $+ $v1
      timer. $+ $v1 0 900 /msg $v1 $4-
      inc %x
    }
  }
}