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) ] ]) {
unset %timer. [ $+ [ $gettok($3,%x,44) ] ]
$+(timer.,$gettok($3,%x,44)) off
msg $chan %skin1 Off %skin2 Turned timer off. %skin3
halt
}
else {
msg $chan %skin1 Off %skin2 The timer(s) you supplied aren't set. %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
}
}
}