Originally Posted by Lombra
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:
local filterFunc = function(self, event, ...)
-- do stuff;
end
ChatFrame_AddMessageEventFilter("AN_EVENT", filterFunc);
Back to the drawing board for me, I guess.