Originally Posted by syncrow
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.