Also run on player login maybe...

This commit is contained in:
2024-12-08 11:27:45 +01:00
parent ee032e1909
commit 7775380ce6

View File

@@ -105,12 +105,16 @@ local function FindOrCreateChatFrame(chatFrameName, groups, channels)
return chatFrame
end
local frame = CreateFrame("Frame")
--frame:RegisterEvent("PLAYER_LOGIN")
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
frame:SetScript("OnEvent", function(self, event, ...)
local function Configure()
JoinChannels()
FindOrCreateChatFrame("Auto", subscribedMessageGroups, subscribedChannels)
-- FindOrCreateChatFrame("Agent", {}, { "Agent" })
-- FindOrCreateChatFrame("Horde", {}, { "Horde" })
end
local frame = CreateFrame("Frame")
frame:RegisterEvent("PLAYER_LOGIN")
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
frame:SetScript("OnEvent", function(self, event, ...)
Configure()
end)