Originally Posted by Lombra
Chat filter functions receives the [chat]frame as the first argument and also MessageEventHandler is called as a result of OnEvent, so I don't believe you gain anything by hooking OnEvent directly.
|
MessageEventFilters have nothing to do with frames, so the chat frame isn't it's first argument (event is). The filter doesn't need to know which frame (if any) a message will be displayed on. It just provides the ability to return out of CF_MEH early before it starts calling AddMessage to appropriate chat frames.