Also run on player login maybe...
This commit is contained in:
		@@ -105,12 +105,16 @@ local function FindOrCreateChatFrame(chatFrameName, groups, channels)
 | 
				
			|||||||
	return chatFrame
 | 
						return chatFrame
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
local frame = CreateFrame("Frame")
 | 
					local function Configure()
 | 
				
			||||||
--frame:RegisterEvent("PLAYER_LOGIN")
 | 
					 | 
				
			||||||
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
 | 
					 | 
				
			||||||
frame:SetScript("OnEvent", function(self, event, ...)
 | 
					 | 
				
			||||||
	JoinChannels()
 | 
						JoinChannels()
 | 
				
			||||||
	FindOrCreateChatFrame("Auto", subscribedMessageGroups, subscribedChannels)
 | 
						FindOrCreateChatFrame("Auto", subscribedMessageGroups, subscribedChannels)
 | 
				
			||||||
	--	FindOrCreateChatFrame("Agent", {}, { "Agent" })
 | 
						--	FindOrCreateChatFrame("Agent", {}, { "Agent" })
 | 
				
			||||||
	--	FindOrCreateChatFrame("Horde", {}, { "Horde" })
 | 
						--	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)
 | 
					end)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user