View Single Post
02-14-14, 05:02 PM   #14
Aanson
A Flamescale Wyrmkin
Join Date: Aug 2009
Posts: 124
Originally Posted by Lombra View Post
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.
__________________
__________________
  Reply With Quote