mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2007
Posts: 51
T
Babel fish
OP Offline
Babel fish
T
Joined: Oct 2007
Posts: 51
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.

Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
That should be expected if you consider what the continue command does. As soon as $nick($chan,%i) evaluates to your nick, the code jumps directly back to the top of the loop and the line 'dec %i' is never executed from that point on. Wash, rinse, repeat.

Joined: Oct 2007
Posts: 51
T
Babel fish
OP Offline
Babel fish
T
Joined: Oct 2007
Posts: 51
Right, tested it, not a bug, thanks for the info.



Link Copied to Clipboard