View Single Post
10/01/14, 07:41 PM   #6
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by Sasky View Post
Main event manager works fine too. I use that in AutoInvite:
Lua Code:
  1. AutoInvite.callback = function(_, messageType, from, message)
  2.     -- ...
  3. end
  4.  
  5. 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.

Last edited by Garkin : 10/01/14 at 07:47 PM.
  Reply With Quote