mIRC Home    About    Download    Register    News    Help

Print Thread
#271841 16/07/23 09:11 AM
Joined: Jul 2023
Posts: 3
L
Lippy Offline OP
Self-satisfied door
OP Offline
Self-satisfied door
L
Joined: Jul 2023
Posts: 3
Hi, I was wondering if there was the possibility of not being written in private by blocking messages using portions of the address.

For example, let's take a random address: 5S1PwHRLH@Example-ins6tn.post.cust.swisscom.ch

Would it be possible to create a script that blocks a portion of this address at will, such as "post.cust", or even "PwHRL", "swisscom" and so on, preventing any nick that has these same words blocked in the address, from writing to us privately...?

Joined: Jan 2012
Posts: 302
Pan-dimensional mouse
Offline
Pan-dimensional mouse
Joined: Jan 2012
Posts: 302
Most likely, there is no need to create a script for this. Try using the built-in mIRC command "/ignore" to set ignore private messages from users based on part of their address.

For example:
Quote
/ignore -p *@*post.cust*
/ignore -p *PwHRL*@*
/ignore -p *@*swisscom*

/ignore -l

Can read more details here: https://en.wikichip.org/wiki/mirc/commands/ignore


🌐 http://forum.epicnet.ru πŸ“œ irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples
Joined: Jul 2023
Posts: 3
L
Lippy Offline OP
Self-satisfied door
OP Offline
Self-satisfied door
L
Joined: Jul 2023
Posts: 3
Ok, so if I understand correctly I would just do this:

/ignore -p *@*.ch*

So that you don't get messages from all the people with a Swiss address. And so on as in your examples

Joined: Jan 2012
Posts: 302
Pan-dimensional mouse
Offline
Pan-dimensional mouse
Joined: Jan 2012
Posts: 302
Quite right. Thus, you will ignore private messages from any users who have this domain zone "ch" in their host address.
Or, for example, if you want to ignore messages from all US users, use this address mask: /ignore -p *@*.us

The "-p" switch next to the command tells mIRC to only ignore private messages, but you will still receive other types of messages, so if that's not enough, a few other switches can be added.

Note: You should understand that by using such a wide range of ignoring addresses, you run the risk of not receiving an important message from your friends or new acquaintances who have the same domain zone in the host. In this case, you can add some addresses to the exclusion list using the "-x" switch.


🌐 http://forum.epicnet.ru πŸ“œ irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples
Joined: Jul 2023
Posts: 3
L
Lippy Offline OP
Self-satisfied door
OP Offline
Self-satisfied door
L
Joined: Jul 2023
Posts: 3
Okay, now I've got it all figured out. Thank you very much for the explanations and your help, Epic πŸΊπŸ™‚


Link Copied to Clipboard