mIRC Homepage
Posted By: charlesb Ignoring a certain string - 20/07/05 04:16 PM
How could I get a line ignored that includes a set string? The whole line should be ignored regardless of who types it.
Posted By: MikeChat Re: Ignoring a certain string - 20/07/05 05:40 PM
on ^*:TEXT:$(*text to ignore here*):*: { haltdef }

I think that should do what you want
Posted By: DaveC Re: Ignoring a certain string - 21/07/05 12:40 AM
incase its colored he might wanna use
on ^*:TEXT:*:*: { if ($(*text to ignore here*) iswm $strip($1-)) { haltdef } }

A warning needs to go with yours and mine, that your only just stopping the "generic displaying" of the line, its not actually ignored as such, just not displayed.

example.
on ^*:TEXT:$(*text to ignore here*):*: { haltdef }
on *:TEXT:$(*text to ignore here*):*: { echo -a BLAH! $nick said $1- }

The post generic display of that text ON TEXT event well still trip for it.

Its quite hard to actually ignore a text as such, i use /debug /ignore and /timer to do it.

But as you said and i think your right a simple haltdef so it doesnt display is likely al he really needs.
Posted By: charlesb Re: Ignoring a certain string - 21/07/05 01:21 PM
Thanks guys.

But I must say that even after reading the help files a bit I don't really know how to use the script.

If you could just help me to get this script up and running it would be greatly appreciated.
Posted By: DaveC Re: Ignoring a certain string - 21/07/05 01:32 PM
Ok lets pretend the thing you want to ignore is the blue text (not the " ")

"i like mr blobby"

In mirc

click tools
click script editor
click file
click new
type in the bold text below
on ^*:TEXT:*:*: { if ($(*i like mr blobby*) iswm $strip($1-)) { haltdef } }
click ok
type in on the line you normally write text into a channel on the following bold text
/!remote on

you should now find that if someone ELSE says i like mr blobby you wont see it.

PS: remeber change the blue text to what you want (no , commas or smile if there is one simple use a ? in its place
© mIRC Discussion Forums