View Single Post
02-14-14, 09:12 PM   #26
Aanson
A Flamescale Wyrmkin
Join Date: Aug 2009
Posts: 124
Originally Posted by Lombra View Post
If you check the exact line that I linked (highlighted), you will see that self is passed to filterFunc, which is the function that you register using ChatFrame_AddMessageEventFilter. ChatFrame_AddMessageEventFilter itself doesn't take a frame because the filter is applied to all chat frames.

Edit: Didn't see new posts.
Gotcha, sorry.

Lua Code:
  1. local filterFunc = function(self, event, ...)
  2.   -- do stuff;
  3. end
  4. ChatFrame_AddMessageEventFilter("AN_EVENT", filterFunc);

Back to the drawing board for me, I guess.
__________________
__________________
  Reply With Quote