So much code for something simple. This is what I use
on *:INPUT:*: {
if ($regex($mid($1-,1,2),[+-][vhoaq])) {
if ($2 !ison $chan) { echo 4 User is not currently in the channel. | halt }
haltdef
mode $chan $mid($1-,1,1) $+ $remove($mid($1-,2,2),$chr(32)) $2-
}
}
Granted, it is an on input, but it's shorter and does the same thing yours does. Kudos anyways. :) Good work.