Ignore secret values in ChatThrottleLib hooks - #26
Conversation
|
What exactly is the purpose of the ShouldAurasBeSecret call? All we care about is checking if the values are secret and thus strlen fails, nothing else. |
|
Yeah this was a copy paste leftover from a similar fix for another AddOn. Will slim down and check for the existence of |
ecd3ae0 to
f0675fc
Compare
|
You'll need to add |
|
A few remarks ... : I recently had a report of what appeared to be this issue from someone using an addon that I maintain (apparently it's a 100% repro when whispering while in a PVP instance as long as any addons that use CTL are active, if you need a real-world test case; I'm a bit surprised at the apparent scarcity of reports given how broadly CTL is used). Semantically, it seems better to use
The change to Are there any plans to merge this fix as version 32? I'd like to pick up a fix for the person that reported this problem, but I'm hesitant about private forks of versioned libraries like this one with uncoordinated version numbers. |
Summary
Why
ChatThrottleLib's secure hooks convert message text and destination to strings to estimate bandwidth. In restricted encounters, either value can be secret, and converting it raises an error. Ignoring those hook calls prevents the error without changing queued message delivery.