on *:input:#: { if ($1 == .m) { if ($2 == +) { mode $chan + $+ $3 } if ($2 == -) { mode $chan - $+ $3 } } }
Works just as well without the extra on input event.