Code:
alias mdeop {
var %i = $nick($chan,0)
while (%i) {
if ($nick($chan,%i) == $me) { continue }
var %t = %t $nick($chan,%i)
<rest is not important>
dec %i
}
}


The continue function used in this type of loop, freezes mIRC, I have to press ctrl + break to kill the loop and regain control.

I use 6.31, Windows XP Service Pack 2.