Orukxu / SpamThrottle

Vanilla WoW addon to remove unwanted chat messages
GNU General Public License v3.0
19 stars 13 forks source link

Problems with multiple chat windows #4

Closed tsiim closed 7 years ago

tsiim commented 8 years ago

Hey,

I have 3 chat windows, with one having just world, trade and LFG. Turning SpamThrottle on, the messages are pushed only to the main chat window, if that window has the corresponding chats turned on but not to the other windows. Is this a bug or intended and can this be solved as a general thing, or could i get some help on how to modify the code to fit my case?

Orukxu commented 8 years ago

Hi Tslim,

Unfortunately this is a limitation of SpamThrottle in Vanilla. I haven't found a way to solve this issue; it has to do with how the chat handler is hooked in the early API. In TBC it is solvable, but that's not much help ofc. I'm still trying to find a solution.

-- Mopar

Sent from my iPhone

On 17 Jun 2016, at 11:41 PM, tsiim notifications@github.com wrote:

Hey,

I have 3 chat windows, with one having just world, trade and LFG. Turning SpamThrottle on, the messages are pushed only to the main chat window, if that window has the corresponding chats turned on but not to the other windows. Is this a bug or intended and can this be solved as a general thing, or could i get some help on how to modify the code to fit my case?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

sipertruk commented 8 years ago

Hello,

If I get this right the event handler is called :

A simple way is to have one "unique message" table per chat frame. I'm writing code to cover this here : https://github.com/Orukxu/SpamThrottle/compare/master...sipertruk:multiframe?expand=1

Orukxu commented 8 years ago

Thanks for this, I’m taking a look!

On 19 Jun 2016, at 9:25 AM, sipertruk notifications@github.com wrote:

Hello,

If I get this right the event handler is called :

once per chat frame for channel message, even for hidden frames, so that's 7 calls every time

once per chat frame for other message type, if enabled in the frame

A simple way is to have one "unique message" table per chat frame. I'm writing code to cover this here : https://github.com/Orukxu/SpamThrottle/compare/master...sipertruk:multiframe?expand=1 https://github.com/Orukxu/SpamThrottle/compare/master...sipertruk:multiframe?expand=1 — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Orukxu/SpamThrottle/issues/4#issuecomment-226974102, or mute the thread https://github.com/notifications/unsubscribe/AH-Cu0RIbWwDq4gcOCWRqKcx1pWq-2IJks5qNJp7gaJpZM4I4e1n.

Orukxu commented 8 years ago

OK looks to be doing exactly the right thing. I'm going to test it for a day or two, then will push this change to the master tree and update the version to 1.10. Thanks very much for this, solves a long standing problem that I haven't had time to investigate.