Originally Posted by Aanson
But that points to CF_MEH which is where 'self' is coming from. I know that MessageEventHandler is passed with chat frame as it's 1st arg. Filters don't. If you check out ChatFrame_AddMessageEventFilter (event, filter) line 3193 of ChatFrame.lua, you'll see what I'm talking about.
|
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.