mIRC Home    About    Download    Register    News    Help

Print Thread
#63038 06/12/03 09:09 AM
Joined: Feb 2003
Posts: 282
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Feb 2003
Posts: 282
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?

Last edited by saragani; 06/12/03 10:01 AM.
#63039 06/12/03 09:25 AM
Joined: Nov 2003
Posts: 227
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 227
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.

#63040 06/12/03 09:29 AM
Joined: Feb 2003
Posts: 282
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Feb 2003
Posts: 282
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.

#63041 06/12/03 10:01 AM
Joined: Feb 2003
Posts: 282
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Feb 2003
Posts: 282
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.

#63042 06/12/03 10:02 AM
Joined: Nov 2003
Posts: 227
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 227
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.


Link Copied to Clipboard