Last active
December 21, 2019 14:48
-
-
Save LenweSaralonde/addffcb2293f19a6db31d18c8359bba0 to your computer and use it in GitHub Desktop.
YELL and SAY chat channels identified as UNKNOWN on CHAT_MSG_ADDON
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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