Is there a way to order event callbacks (by plugin)?
View Single Post
12-30-14, 06:05 PM
Join Date: Mar 2006
Originally Posted by
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
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.
Troubleshoot an addon
Turn any code into an addon
More addon resources
Need help with your code?
code! Attach or
Please don’t PM me
about addon bugs or code questions. Post a comment or forum thread instead!
View Public Profile
Send a private message to Phanx
Find More Posts by Phanx