Originally Posted by Sasky
Main event manager works fine too. I use that in AutoInvite:
Lua Code:
AutoInvite.callback = function(_, messageType, from, message) -- ... end EVENT_MANAGER:RegisterForEvent(AutoInvite.AddonId, EVENT_CHAT_MESSAGE_CHANNEL, AutoInvite.callback)
|
This solution is probably the best one as it is completely independent on chat handlers, so it should always work.
If you don't need to modify chat output, this is what you are looking for.