AddOns
AddOn Manager
Latest 200
Browse
Upload AddOn
Search AddOns
Projects
Author Portals
Git Repositories
SVN Repositories
Options
Email Feeds
Preference
Download History
News
Forums
New posts
Today's Posts
Search Forum
Categories
General
AddOns, Comps, Macros
Featured Projects
Developer
Site Forums
Mark Forums Read
Subscribed Threads
Open Buddy List
Members List
Help
Login
Sign up
WoWInterface
»
Developer Discussions
»
Lua/XML Help
»
Intercept messages
Go to Page...
Reply
View First Unread
Thread Tools
Display Modes
06-26-14, 10:55 AM
#
1
Spawnova
A Warpwood Thunder Caller
Join Date: Aug 2012
Posts: 96
Intercept messages
What would be a good way to check a message before it is shown in the chat box and decide whether it should be shown or discarded?
Spawnova
View Public Profile
Send a private message to Spawnova
Find More Posts by Spawnova
06-26-14, 11:06 AM
#
2
semlar
A Pyroguard Emberseer
Join Date: Sep 2007
Posts: 1,060
ChatFrame_AddMessageEventFilter
can be used to filter unwanted messages from the chat frame.
If what you want to do can't be done with that you can overwrite the chat frame's AddMessage function, but the other method is preferable.
semlar
View Public Profile
Send a private message to semlar
Find More Posts by semlar
06-26-14, 11:13 AM
#
3
Spawnova
A Warpwood Thunder Caller
Join Date: Aug 2012
Posts: 96
That seems to work for my needs, thank you very much!
Spawnova
View Public Profile
Send a private message to Spawnova
Find More Posts by Spawnova
Reply
WoWInterface
»
Developer Discussions
»
Lua/XML Help
» Intercept messages
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
vB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off