or you could add a delay in the on me event for mirc to determine if you are opped or not after it gets that info from server wich takes a moment to retreive from server
Code
ON ME:*:JOIN:#: {
.timer -m 1 500 checkopme $unsafe($chan)
}
alias checkopme {
if ($nick($1,$me,@)) { im opped on $1 }
else { im not opped on $1 }
}