mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2013
Posts: 1
J
Mostly harmless
OP Offline
Mostly harmless
J
Joined: Jun 2013
Posts: 1
i want it to ignore the user when it types the text.

I took a trigger script and edited like this, i have no idea if this is something correct?

on *:TEXT:gg:#: {
/ignore $nick
}

Joined: Mar 2004
Posts: 526
Fjord artisan
Offline
Fjord artisan
Joined: Mar 2004
Posts: 526
if you (in mirc) do /help on text

it will give you help for how to do what you want.
Also, and most of the scripting sites (google search for 'mIRC Script' you can find a lot of example on how to catch words or pharases with on text. Most are for bad word scripts, but the logic for checking works, and the command you use (in your case /ignore $nick ) would work with them.

Good luck!


Help others! It makes the world a better place, Makes you feel good, and makes you Healthy!
Joined: Jul 2013
Posts: 2
M
Bowl of petunias
Offline
Bowl of petunias
M
Joined: Jul 2013
Posts: 2
That is correct, except, you can do it a different way also..

If you just want to ignore the user completely, what you did is correct except it will only ignore the user if they type gg and nothing else.

To grab text from anywhere in the sentence use

on *:TEXT:*gg*:#:{ /ignore $nick }

You could also do...

on ^1:TEXT:*gg*:#:{ haltdef | echo -a **Message Filtered** }

That will just remove the line that contains the gg and will tell you a message was filtered.


You can also go another route and use...

on *:TEXT:*:*:{
if (gg isin $$1-) { goto ignore }
if (badword isin $$1-) { goto ignore }
else { goto end }
:ignore
ignore $nick
:end
return
}

Or

on ^1:TEXT:*:*:{
if (gg isin $$1) { haltdef | goto filtered }
else { goto end }
:filtered
echo -a **Text filtered**
:end
}


That is all just off the top of my head....might need some work.


Link Copied to Clipboard