I didn't quite get your problem but before we try to solve it, have you considered using /cnick ?

/cnick * 3 +
colours all voiced nicks green

/cnick * 4 @
colours all opped nicks red

You only have to type each command once. mirc will then colour ops/voiced nicks by itself when they get +o/+v or when you join a channel with existing ops/voiced people.

/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com