fix(sync): register OMSYNC addon-message prefix so the threat relay receives on 3.3.5
This commit is contained in:
@@ -110,6 +110,12 @@ end
|
|||||||
-- Receiver
|
-- Receiver
|
||||||
-- ---------------------------------------------------------------------------
|
-- ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
-- Register the prefix so CHAT_MSG_ADDON fires for our messages on 3.3.5.
|
||||||
|
-- Without this, incoming OMSYNC packets are silently discarded by the client.
|
||||||
|
if RegisterAddonMessagePrefix then
|
||||||
|
RegisterAddonMessagePrefix(PREFIX)
|
||||||
|
end
|
||||||
|
|
||||||
local f = CreateFrame("Frame")
|
local f = CreateFrame("Frame")
|
||||||
f:RegisterEvent("CHAT_MSG_ADDON")
|
f:RegisterEvent("CHAT_MSG_ADDON")
|
||||||
f:RegisterEvent("PLAYER_LEAVING_WORLD")
|
f:RegisterEvent("PLAYER_LEAVING_WORLD")
|
||||||
|
|||||||
Reference in New Issue
Block a user