mIRC Home    About    Download    Register    News    Help

Print Thread
ignore only from PM #3857 29/12/02 01:01 AM
Joined: Dec 2002
Posts: 25
K
KennyJ Offline OP
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Dec 2002
Posts: 25
How to ignore users from Private mEssage only? and close that queries automatic?

Re: ignore only from PM #3858 29/12/02 01:05 AM
Joined: Dec 2002
Posts: 12
M
moho Offline
Pikka bird
Offline
Pikka bird
M
Joined: Dec 2002
Posts: 12
Well an easy way is to use the -p switch for /ignore. Then the query window shouldn't open at all.

Re: ignore only from PM #3859 29/12/02 01:06 AM
Joined: Dec 2002
Posts: 144
D
Dana Offline
Vogon poet
Offline
Vogon poet
D
Joined: Dec 2002
Posts: 144
Ignoring all private messages: /ignore -p *!*@*.*

Ignoring all private messages from a specific host: /ignore -p *!ident@*.domain.com

Code for a popup that will ignore further private messages sent by the user and that will close the query window in question: (put it into remotes)
Code:
menu query {
  IgnoreP and Close: ignore -p $$1 3 | close -m $$1
}


"Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke
Re: ignore only from PM #3860 29/12/02 01:14 AM
Joined: Dec 2002
Posts: 25
K
KennyJ Offline OP
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Dec 2002
Posts: 25
Code:
on *:text:*:?:{
  window -c $1
}


Code:
on *:text:*:?:{
  close -m $$1
}

None of these codes work when some one Pm me.. i think it the $$1, i don't know what to replace with..

Re: ignore only from PM #3861 29/12/02 01:16 AM
Joined: Dec 2002
Posts: 12
M
moho Offline
Pikka bird
Offline
Pikka bird
M
Joined: Dec 2002
Posts: 12
$nick

Re: ignore only from PM #3862 29/12/02 01:17 AM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
on *:TEXT:*:?:{
window -c $nick
}

Re: ignore only from PM #3863 29/12/02 01:17 AM
Joined: Dec 2002
Posts: 40
L
Lucifer Offline
Ameglian cow
Offline
Ameglian cow
L
Joined: Dec 2002
Posts: 40
replace $1 with $nick

Re: ignore only from PM #3864 29/12/02 01:27 AM
Joined: Dec 2002
Posts: 25
K
KennyJ Offline OP
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Dec 2002
Posts: 25
thx all.. totally forgot about that..

Re: ignore only from PM #3865 29/12/02 05:28 AM
Joined: Dec 2002
Posts: 1,321
H
Hammer Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Using an event to set that /ignore is just a little crazy. You will be filling up your ignore list pointlessly everytime someone sends a PRIVMSG to you. Why not do as moho and Dana suggested to begin with?

/ignore -p *!*@*

That will ignore ALL private messages from all sources. No windows will open, no events will trigger, no ignore lists will get huge. Personally, I prefer to use the mask *!~*@* because a large percent of the spammers use unIDENTd'd clients, for one reason or another.

On bahamut-based networks like DALnet, you can even stop the traffic at the server before it ever gets to mIRC (preventing DDoS IRC drone attacks from SendQing you offline by filling up your SendQ buffer).

/silence +*!*@* or /silence +*!~*@*

If you absolutely MUST use an event to ignore certain people for some reason (timed unignore/user levels/etc.), then use the on OPEN event and halt it (which also prevents the window from opening).


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C