It'd look something in the lines of this. Do you need it wrapped up into an addon?
Code:
-- Code removed, look further down for d/l link
Reference
http://www.wowwiki.com/API_ChatFrame...ageEventFilter
http://www.wowwiki.com/Events/Communication
__________________
I stopped playing back World of Warcraft in 2010 and I have no plans on returning.
This is a dead account and if you want to continue any of my addons or make a fork then feel free to do so.
This is your permission slip.
If you need to contact me, do so on
Twitter @v6ooo
Best regards, v6.