Update horde password
And clean up metadata a bit
This commit is contained in:
		@@ -5,8 +5,8 @@
 | 
				
			|||||||
local debug = false
 | 
					local debug = false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
---@type Channel[]
 | 
					---@type Channel[]
 | 
				
			||||||
local channels = {
 | 
					local ourchannels = {
 | 
				
			||||||
	{ name = "Horde", password = "garrosh" },
 | 
						{ name = "Horde",        password = "durotaner" },
 | 
				
			||||||
	{ name = "world_ru",     password = nil },
 | 
						{ name = "world_ru",     password = nil },
 | 
				
			||||||
	{ name = "Agent",        password = "agents42" },
 | 
						{ name = "Agent",        password = "agents42" },
 | 
				
			||||||
	{ name = "AgentRU",      password = "42agents" },
 | 
						{ name = "AgentRU",      password = "42agents" },
 | 
				
			||||||
@@ -36,7 +36,7 @@ local subscribedChannels = {
 | 
				
			|||||||
	"Foobar",
 | 
						"Foobar",
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
local function JoinChannels()
 | 
					local function JoinChannels(channels)
 | 
				
			||||||
	for _, channel in ipairs(channels) do
 | 
						for _, channel in ipairs(channels) do
 | 
				
			||||||
		if channel.password then
 | 
							if channel.password then
 | 
				
			||||||
			JoinPermanentChannel(channel.name, channel.password)
 | 
								JoinPermanentChannel(channel.name, channel.password)
 | 
				
			||||||
@@ -50,6 +50,7 @@ end
 | 
				
			|||||||
---@param groups string[]
 | 
					---@param groups string[]
 | 
				
			||||||
---@param channels string[]
 | 
					---@param channels string[]
 | 
				
			||||||
local function FindOrCreateChatFrame(chatFrameName, groups, channels)
 | 
					local function FindOrCreateChatFrame(chatFrameName, groups, channels)
 | 
				
			||||||
 | 
						---@type Frame
 | 
				
			||||||
	local chatFrame = nil
 | 
						local chatFrame = nil
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if debug then print(string.format("Searching for chat window %s", chatFrameName)) end
 | 
						if debug then print(string.format("Searching for chat window %s", chatFrameName)) end
 | 
				
			||||||
@@ -121,7 +122,7 @@ local function Privjet(channelname)
 | 
				
			|||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
local function Configure()
 | 
					local function Configure()
 | 
				
			||||||
	JoinChannels()
 | 
						JoinChannels(ourchannels)
 | 
				
			||||||
	FindOrCreateChatFrame("Auto", subscribedMessageGroups, subscribedChannels)
 | 
						FindOrCreateChatFrame("Auto", subscribedMessageGroups, subscribedChannels)
 | 
				
			||||||
	FindOrCreateChatFrame("world_ru", {}, { "world_ru" })
 | 
						FindOrCreateChatFrame("world_ru", {}, { "world_ru" })
 | 
				
			||||||
	--	FindOrCreateChatFrame("Horde", {}, { "Horde" })
 | 
						--	FindOrCreateChatFrame("Horde", {}, { "Horde" })
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user