mIRC Homepage
Posted By: saragani halting text- Solved - 06/12/03 09:09 AM
I made a script which should halt certain text from being shown on the screen.
I used:
on ^*:text:...... {
if (bla bla bla isin $1-) haltdef
}

I noticed that all text was halted, and even if I remove the "if ..." it still being halted. I though the text should be halted only when the haltdef command is being executed.

What should I do to fix it?
Posted By: Hitchhiker Re: halting text - 06/12/03 09:25 AM
I wonder what you have censored under the dots in
on ^*:text:...... {

both these work for me, I dont have any script to modify the default text.
on ^*:text:*blah*:#:haltdef
on ^*:text:*:#:if (blah isin $1-) haltdef
both only halt lines with "blah" in them.

If you do have anything else to modify the default text, then It is more likely to not halt than halt even if the text does not match.
Posted By: saragani Re: halting text - 06/12/03 09:29 AM
on ^1:TEXT:*:*: {
if ($readini(" $+ $scriptdirsaragani.ini",config,oppr) == 1) && ($hfind(oppr,$nick $1-,0,w).data > 0) haltdef
}

Even if I remove the "if ...." the text is still being halted.
Posted By: saragani Re: halting text - 06/12/03 10:01 AM
Ok, sorry.

I had a little bug. The script called to another fuction on the text even, and the other function had an halt inside it which caused all the text to be halted. Now it seems to be working.

Thanks.
Posted By: Hitchhiker Re: halting text - 06/12/03 10:02 AM
you mean if you remove the "if" statement and the haltdef it's still being halted?, if you dont remove the haltdef that its going to halt all text for everything.
© mIRC Discussion Forums