View Single Post
10-15-18, 03:48 AM   #8
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
Originally Posted by zork View Post
Some code in the link is using
Lua Code:
  1. ChatFrame_AddMessageEventFilter('CHAT_MSG_CHANNEL', function() return true end)
Not sure if that makes sense when you can just remove the filter with
Lua Code:
  1. ChatFrame_RemoveMessageEventFilter (event, filter)
Terenna is recreating ChatFrame_MessageEventHandler, that filter is to completely block the original event while their new code handles it, otherwise you get double messages printed.
  Reply With Quote