Since 8.2.5, the function MacroEditBox is triggering an “Interface failed because of an Addon” when I try to use it for chat messages, like a /s or /y, but now with emotes… But only if used inside an Addon code!
See the below example:
MacroEditBox:GetScript("OnEvent")(MacroEditBox, "EXECUTE_CHAT_LINE", "/e is testing stuff")
MacroEditBox:GetScript("OnEvent")(MacroEditBox, "EXECUTE_CHAT_LINE", "/s I'm testing stuff, work already!!!")
This will print the emote on the chat, but not the “say”, triggering the interface fail message. Strangely enough, this only happens within addon code, because i made a simple macro with the following content, for testing purposes:
/script MacroEditBox:GetScript("OnEvent")(MacroEditBox, "EXECUTE_CHAT_LINE", "/s this works in a macro!")
This is all part of an Addon I use for RP purposes on my skills, called SpeakinSpell, that broke after 8.2.5. I’ll need the help of someone more Savvy than me, because I never coded in LUA before, I just scavenged this error after some hours of research.
Can anyone light a spark?
EDIT:
The problem also occurs with the SendChatMessage function. The following code will render the same error:
SendChatMessage("this is just a test" ,"SAY");
Crazy stuff that I have no idea how to solve!