View Single Post
11-19-16, 03:48 PM   #4
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
You can use ChatFrame_AddMessageEventFilter() to modify incoming messages.

Lua Code:
  1. ChatFrame_AddMessageEventFilter("CHAT_MSG_GUILD",function(self,event,msg,...)
  2. --  Do something with message
  3.     return false,msg,...;-- True blocks the message from displaying, if changing any event args, we need to return all of them
  4. end);
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote