Filter the bnet messages?
2 Attachment(s)
As many of you may be familiar with the addon 'OQ' (oQueue) it basically puts any users bnet message to 'OQ' which spams me constantly.
I'm wondering if there is a way to possibly prevent this bnet message from being displayed? Looking over the bnet.lua, toast messages are stored in a local table and 'OnUpdate' the table is checked and the toast window is shown. Only way I see this being done is to replace the blizzard function that adds the toast to the table. Any thoughts?? |
Probably:
Code:
local orig = BNToastFrame_AddToast |
Quote:
Lua Code:
Think those conditionals would make more sense. Pass any 'BN_TOAST_TYPE_BROADCAST' that's not "OQ". I'll give it a try. Edit: Removed the check on toastType. Edit 2: After doing a bit of testing, toastData would never be 'OQ' as a string. It would pass the friend id to be used with 'BNGetFriendInfoByID'. Edit 3: More testing has revealed that the exact string has changed to '(OQ) ' which does include that space. Lua Code:
|
If you're going to spend CPU on calling select, why not just simplify the whole thing:
Code:
if toastType ~= 3 or select(12, BNGetFriendInfoByID(toastData)) ~= "OQ" then |
Makes sense, final code:
Lua Code:
Alternatively if for some reason there is a deviation in the exact string this would fix the issue most likely: Lua Code:
|
Well did some searching apparently there is something similar yet not as simplified:
http://wow.curseforge.com/addons/oqspamblocker/ Also another thread regarding this issue: http://www.wowinterface.com/forums/s...ad.php?t=48283 |
Quote:
Stop overcomplicating things. :p |
Blizzard is actually making some changes to bnet. Off of my brief skimming that would make oq use a hidden channel. Especially as the oq author is posting in it.
Blizz post |
Quote:
|
I had just been removing friends who used oQueue...
|
All times are GMT -6. The time now is 07:04 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI