Skip to content

Instantly share code, notes, and snippets.

@LenweSaralonde
Last active December 21, 2019 14:48
Show Gist options
  • Save LenweSaralonde/addffcb2293f19a6db31d18c8359bba0 to your computer and use it in GitHub Desktop.
Save LenweSaralonde/addffcb2293f19a6db31d18c8359bba0 to your computer and use it in GitHub Desktop.
YELL and SAY chat channels identified as UNKNOWN on CHAT_MSG_ADDON
-- Reproduction steps
-- Each line can be entered in game with the /run command
-- https://github.com/Stanzilla/WoWUIBugs/issues/24
C_ChatInfo.RegisterAddonMessagePrefix("BlzBug");
local f = CreateFrame("Frame"); f:RegisterEvent("CHAT_MSG_ADDON"); f:SetScript("OnEvent", function(self, event, prefix, text, channel) print("Received", event, prefix, string.len(text), channel, text) end);
C_ChatInfo.SendAddonMessage("BlzBug", "Hello world!", "WHISPER", UnitName("player")) -- OK: WHISPER channel
C_ChatInfo.SendAddonMessage("BlzBug", "Hello world!", "YELL") -- KO: UNKNOWN channel
C_ChatInfo.SendAddonMessage("BlzBug", "Hello world!", "SAY") -- KO: UNKNOWN channel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment