mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 3
R
Self-satisified door
OP Offline
Self-satisified door
R
Joined: Dec 2002
Posts: 3
hi,

i just want to ignore some lines in mirc, not a whole user.

so, i don't want to see lines like: "[19:51] * [DF]NoNam3 is playing CounterStrike on CS-Suchtklinik - #DelaForce (217.160.107.234:27015) with HLSW (www.hlsw.de)" in mIRC" in my mIRC-Windows.

but how can i filter those lines?

on ^*:TEXT:*with (www.hlsw.de)*:#: haltdef

in Remotes seems not to work.....

Joined: Dec 2002
Posts: 164
M
Vogon poet
Offline
Vogon poet
M
Joined: Dec 2002
Posts: 164
I am not sure if I understood your question. Let me try to answer anyway:
First of all you need to understand how the communication from user to user works. Assume we have only one single server with one channel and several users just to make it easier to understand. The principle for a huge network with thousands of users is the same:
1. The user sends a line from his IRC client to the channel and therefore to the server of that network.
2. The server checks the text and stores it in his buffer (usually 512 Bytes - the rest will be cut off).
3. The text is send back to the channel.
4. All users will see this text - some earlier and some later - including you.

All you can do is to react on a event - but you can not prevent it from happen. This example also makes clear why such a think like a Kick and/or Ban Protection is simply not possible.
Back to your example: All you can do is to IGNORE the user - AFTER the first "bad" line has apeared on your clients channel window.
You may be able to react on words or fragments of a sentences and take precautions - you just need a trigger to make your event react upon.
Example for a swear word kick/ban and ignore:
Code:
  
ON @1:TEXT:*:#:{ 
  IF (*badword* iswm $1-) { 
    ban $chan $nick 3 
    kick $chan $nick Increase Your Vocabulary!
    ignore -u60 $nick
  } 
}

Hopefully this explains the background why your filter idea would not work.


Last edited by Merlin; 19/12/02 08:03 PM.

DALnet: #HelpDesk, #mIRC, #MISHScript - Undernet: #mIRC, #mIRC-Scripts
Joined: Dec 2002
Posts: 145
G
Vogon poet
Offline
Vogon poet
G
Joined: Dec 2002
Posts: 145
on ^*:TEXT:$(*with*www.hlsw.de*):#: haltdef

Joined: Dec 2002
Posts: 3
R
Self-satisified door
OP Offline
Self-satisified door
R
Joined: Dec 2002
Posts: 3
I don't want to prevent it to happen. i just don't want it displayed on my Screen.

e.g.:

before this text apears in mIRC:
[21:21] <User> hello guys
[21:21] * User2 is away - bouncer on

The filter/script does following:
1. store incoming Text in Cache
2. use userdefined filter (filter: "*is away*")
3. delete matched line ([21:21] * User2 is away - bouncer on)
4. display remaining Text ([21:21] <User> hello guys)

i want to chat with this people, but i do not want to know, what mp3 they are currently playing...

PS: Sorry for any bad spelling, i'am german.....

Joined: Dec 2002
Posts: 3
R
Self-satisified door
OP Offline
Self-satisified door
R
Joined: Dec 2002
Posts: 3
that works fine, thanks gemeau50


Joined: Dec 2002
Posts: 145
G
Vogon poet
Offline
Vogon poet
G
Joined: Dec 2002
Posts: 145
You're welcome :-))


Link Copied to Clipboard