View Single Post
09-28-20, 05:06 PM   #10
Vrul
A Scalebane Royal Guard
 
Vrul's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 404
You could just hook the AddMessage method:
Code:
hooksecurefunc(DEFAULT_CHAT_FRAME, "AddMessage",  function(self, message, ...)
	-- Do something with message
end)
Just remember if you want to output something to DEFAULT_CHAT_FRAME from within the hook you'll need to setup a flag to ignore that message or an endless loop will occur.
  Reply With Quote