mIRC Homepage
Posted By: ispukikoy Ignore Per channel basis - 26/07/07 09:32 AM
Is there a way to ignore a chatter on a per channel basis?
For example:

John is only ignored by in channels a & b, but not in channel c?

Can this implemeted by an Mirc setting or does it need a remote script?

Thanks in advance.

Posted By: Bekar Re: Ignore Per channel basis - 26/07/07 11:34 AM
You would need to script it.

The inbuilt ignore is more of a braod brush.

Be aware however that doing this will be a standard client ignore, i.e. you still *get* the message, you just choose not to show it on the screen.

A simple:

Code:
ON *:TEXT:*:#channel: { if ($nick == badguy) { halt } }

should suffice.

If you want a more complex example, let us know.
Posted By: SladeKraven Re: Ignore Per channel basis - 26/07/07 11:53 AM
Code:
ON *:TEXT:*:#channel: { if ($istok(Nick1 Nick2 Nick3 Nick4 Nick5,$nick,32)) { halt } }


Taken from Bekar's example this is to add multiple nicks.
Posted By: Collective Re: Ignore Per channel basis - 26/07/07 12:01 PM
You will also need the ^ event prefix:
Code:
ON ^*:TEXT:*:#channel: { if ($istok(Nick1 Nick2 Nick3 Nick4 Nick5,$nick,32)) { halt } }
Posted By: SladeKraven Re: Ignore Per channel basis - 26/07/07 12:04 PM
Ah I wasn't looking, didn't notice Bekar left it out. Good catch.
Posted By: ispukikoy Re: Ignore Per channel basis - 26/07/07 06:36 PM
what happened to sladekraven and collective's codes?
I cant see them; just horizontal scroll bars.
Am i missing something? frown

Actually I need something to ignore (in the sense the chatter is really ignored in channel c) and not just filtering out as a standard client ignore or "choose not to show it on the screen."

I run a trivia bot on 3 channels. The bot accumulates all the scores of the chatter whether he plays on channel a, b, or c or simultaneously on all channels, hence *cheating* takes place.

So, I want to control... A chatter can only play trivia on one of the three channels, so that he cannot get accumulated scores from the other channels. The trivia bot script doesnt have the option to control this or make separate scoring for the three channels. It only has one scoring system regardless of how many channels it's being run.

So, I have to control using the ignore.

Thanks in advance.

Posted By: genius_at_work Re: Ignore Per channel basis - 27/07/07 01:17 AM
You need to upgrade to a real web browser. Try Firefox or Opera. Internet Explorer doesn't conform to CSS2 standards, so it can't render pages correctly.

-genius_at_work
Posted By: RoCk Re: Ignore Per channel basis - 27/07/07 01:22 AM
...or change the stylesheet in your preferences.
Posted By: ispukikoy Re: Ignore Per channel basis - 27/07/07 07:49 AM
Thanks. With the board preferences changes, I now can see the codes well...

So back to the script I asked, anybody here can help me?

Thanks again.
© mIRC Discussion Forums