diff --git a/Channeler.lua b/Channeler.lua index 87bd75a..7999fae 100644 --- a/Channeler.lua +++ b/Channeler.lua @@ -5,11 +5,11 @@ local debug = false ---@type Channel[] -local channels = { - { name = "Horde", password = "garrosh" }, - { name = "world_ru", password = nil }, - { name = "Agent", password = "agents42" }, - { name = "AgentRU", password = "42agents" }, +local ourchannels = { + { name = "Horde", password = "durotaner" }, + { name = "world_ru", password = nil }, + { name = "Agent", password = "agents42" }, + { name = "AgentRU", password = "42agents" }, { name = "EssenceAgent", password = nil }, } ---@type string @@ -36,7 +36,7 @@ local subscribedChannels = { "Foobar", } -local function JoinChannels() +local function JoinChannels(channels) for _, channel in ipairs(channels) do if channel.password then JoinPermanentChannel(channel.name, channel.password) @@ -50,6 +50,7 @@ end ---@param groups string[] ---@param channels string[] local function FindOrCreateChatFrame(chatFrameName, groups, channels) + ---@type Frame local chatFrame = nil if debug then print(string.format("Searching for chat window %s", chatFrameName)) end @@ -121,7 +122,7 @@ local function Privjet(channelname) end local function Configure() - JoinChannels() + JoinChannels(ourchannels) FindOrCreateChatFrame("Auto", subscribedMessageGroups, subscribedChannels) FindOrCreateChatFrame("world_ru", {}, { "world_ru" }) -- FindOrCreateChatFrame("Horde", {}, { "Horde" })