I only like to have on inputs events to be disable cuz it is easier to debug a conflicting on input event. but if you don't want an on n off:
on *:input:#:{ if ($regex($1,/^([+-]m)$/S)) { if ($nick(#,$me,oh)) { .timermode 1 1 mode # $regml(1) } else { haltdef } } }