mIRC Home    About    Download    Register    News    Help

Print Thread
#125676 20/07/05 04:16 PM
Joined: Jul 2005
Posts: 5
C
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Jul 2005
Posts: 5
How could I get a line ignored that includes a set string? The whole line should be ignored regardless of who types it.

Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
on ^*:TEXT:$(*text to ignore here*):*: { haltdef }

I think that should do what you want

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
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.

Joined: Jul 2005
Posts: 5
C
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Jul 2005
Posts: 5
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.

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
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


Link Copied to Clipboard