You are welcome, Master-Of-Death. You can also shorten the regex to this:
on $@*:TEXT:/!(\w*(?=op|voice|protect)\w*|join|part|nick)/iS:#: {
This will match all the commands in relation to the original script's.