Luckily the most recent version mIRC has support for IRCv3 tags, so it’s fairly easy to check for moderator that way. I made a simple script to make that easier: http://pastebin.com/9tBbbCCw
With that script loaded, you can then use the defined indentifiers in your script.
Instead of:
if ($nick isop #) {
;do something
}
You would write:
if ($hasModPowers) {
;do something
}
The $hasModPowers identifier includes all kinds of moderation powers, so regular mods, the broadcaster, global mods, admins and staff. There are also other identifiers included.
Note that this only works in the on text event for a message that contains the correct tags, it doesn’t keep track of mod status otherwise (this is also why no nick or channel is required, it checks the $msgtags attached to the message). But for reacting to commands it is enough and more reliable than anything else at the moment.