No need for that: $nick(<channel>,<nick>,<mode letter/symbol>) returns a number (position in nicklist) if the nick has that mode, otherwise $null. And yes, it doesn't only support "aohvr", it supports whatever modes are in $prefix (and $nickmode)
Examples: $nick(#blah,foo,*), $nick(#blah,foo,z)

What I don't know is what happens when the mode letter happens to be "a" or "r", which conflicts with mirc's reserved letters for "all" and "regulars".


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