alias next_timer {
; Usage: $next_timer(name)
if ($1 == $null) return
var %i = 1, %num = 1
while $timer(%i) != $null {
if ($regex(nt, $ifmatch, /^ $+ $replace($1,\,\\,.,\.,?,\?,+,\+,[,\[) $+ (\d+)/i)) && ($regml(nt, 1) >= %num) %num = $calc($ifmatch + 1)
inc %i
}
return %num
}