Additionally, you can check if your network supports +q nick mode by entering on any mirc window to find out when connected:
//echo $nickmode
if there is a q; and if so, you can use the isowner operator. There is also a > $mode(1).ownerand> $mode(1).deownerto return the first user who gets a +q and -q via on owner or rawmode event.