View Single Post
02-14-14, 08:43 PM   #23
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 554
Originally Posted by Aanson View Post
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.
__________________
Grab your sword and fight the Horde!
  Reply With Quote