View Single Post
02-27-15, 10:47 PM   #116
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by syncrow View Post
This event also triggers the DND status , which I want to avoid. Therefore i use the CHAT_MSG_SYSTEM for a precise way.
You can use UnitIsAFK to see if the event was triggered by AFK, though you do have to keep track of the previous state outside of the event handler.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote