mIRC Homepage
Posted By: RedBaron how to ignore specified lines in mirc? - 19/12/02 07:00 PM
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.....
Posted By: Merlin Re: how to ignore specified lines in mirc? - 19/12/02 07:44 PM
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.

Posted By: gemeau50 Re: how to ignore specified lines in mirc? - 19/12/02 08:14 PM
on ^*:TEXT:$(*with*www.hlsw.de*):#: haltdef
Posted By: RedBaron Re: how to ignore specified lines in mirc? - 19/12/02 08:27 PM
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.....
Posted By: RedBaron Re: how to ignore specified lines in mirc? - 19/12/02 08:41 PM
that works fine, thanks gemeau50

Posted By: gemeau50 Re: how to ignore specified lines in mirc? - 20/12/02 01:00 AM
You're welcome :-))
© mIRC Discussion Forums