mIRC Home    About    Download    Register    News    Help

Print Thread
#89340 06/07/04 02:31 AM
Joined: Dec 2002
Posts: 56
Babel fish
OP Offline
Babel fish
Joined: Dec 2002
Posts: 56
This is really strange. I have this alias that I call from inside another alias
like:
alias bla {
--code--
ble
--code--
echo end
}

Now in this ble alias I have a while that reads every line of a window and if the $4 parameter is smaller than 3 it uses continue to go back to the start of the while:

while ($line(%w_,%x)) {
tokenize 32 $ifmatch
if ($len($4) < 3) {
echo -s Did not change: $1-
dline %w_ %x
continue
}

The strange thing that happens is that this continue stops everything. mIRC ignores all the code after the ble alias in the BLA alias. It´s like it´s not there.
And this code works because not all lines have the parameter $4 smaller than 3 and so I get something. I use echo to make sure.

This is a really stupid bug. REALLY
I have no halts in this code and even if the alias used a return the code after the call to Ble should be executed and it isn´t

#89341 06/07/04 12:08 PM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
If this is what you mean it's fixed for the next version smile

Regards,


Mentality/Chris
#89342 06/07/04 03:43 PM
Joined: Dec 2002
Posts: 56
Babel fish
OP Offline
Babel fish
Joined: Dec 2002
Posts: 56
I don´t think this is the case of that bug, because the code still went on.
This continue stops everything it acts like a halt commad frown


Link Copied to Clipboard