mIRC Home    About    Download    Register    News    Help

Print Thread
#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?

#3858 29/12/02 01:05 AM
Joined: Dec 2002
Posts: 12
M
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.

#3859 29/12/02 01:06 AM
Joined: Dec 2002
Posts: 144
D
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
#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..

#3861 29/12/02 01:16 AM
Joined: Dec 2002
Posts: 12
M
Pikka bird
Offline
Pikka bird
M
Joined: Dec 2002
Posts: 12
$nick

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

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

#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..

#3865 29/12/02 05:28 AM
Joined: Dec 2002
Posts: 1,321
H
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

Link Copied to Clipboard