WoWInterface - View Single Post - Is there a way to order event callbacks (by plugin)?
View Single Post
12-30-14, 06:05 PM   #7
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by BlueRaja View Post
So, the problem is that if TradeForwarder handles the messages before TradeChatCleaner, then TradeChatCleaner never gets a chance to filter them, and every trade messages is displayed. If TradeChatCleaner goes first, it can filter the ones I don't want to see before TradeForwarder sees them.
That doesn't really make sense, or I'm not understanding the problem... if TradeForwarder says "block this message", it doesn't matter if it says that before or after TCC says "this message is OK" -- in either order, the message gets blocked, as I explained in my earlier post. Likewise, if TF says "this message is OK" but TCC says "block this message" it still doesn't matter what order that happens in -- the message is blocked if any filter says to block it, even if 1000000000 other filters said it was OK first. Every single filter is checked until either one filter says "block this" or there are no more filters to check.
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
  Reply With Quote