Code format
This commit is contained in:
@@ -27,13 +27,13 @@ local subscribedMessageGroups = {
|
|||||||
"BATTLEGROUND_LEADER",
|
"BATTLEGROUND_LEADER",
|
||||||
"INSTANCE_CHAT",
|
"INSTANCE_CHAT",
|
||||||
"INSTANCE_CHAT_LEADER",
|
"INSTANCE_CHAT_LEADER",
|
||||||
"WHISPER"
|
"WHISPER",
|
||||||
}
|
}
|
||||||
---@type string[]
|
---@type string[]
|
||||||
local subscribedChannels = {
|
local subscribedChannels = {
|
||||||
"Agent",
|
"Agent",
|
||||||
"Horde",
|
"Horde",
|
||||||
"Foobar"
|
"Foobar",
|
||||||
}
|
}
|
||||||
|
|
||||||
local function JoinChannels()
|
local function JoinChannels()
|
||||||
@@ -46,7 +46,6 @@ local function JoinChannels()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
---@param chatFrameName string
|
---@param chatFrameName string
|
||||||
---@param groups string[]
|
---@param groups string[]
|
||||||
---@param channels string[]
|
---@param channels string[]
|
||||||
@@ -130,9 +129,7 @@ local function Configure()
|
|||||||
-- FindOrCreateChatFrame("Agent", {}, { "Agent" })
|
-- FindOrCreateChatFrame("Agent", {}, { "Agent" })
|
||||||
-- FindOrCreateChatFrame("Agent", {}, { "Agent" })
|
-- FindOrCreateChatFrame("Agent", {}, { "Agent" })
|
||||||
Privjet("Horde")
|
Privjet("Horde")
|
||||||
C_Timer.After(1, function()
|
C_Timer.After(1, function() Privjet("Agent") end)
|
||||||
Privjet("Agent")
|
|
||||||
end)
|
|
||||||
|
|
||||||
for i = 1, NUM_CHAT_WINDOWS do
|
for i = 1, NUM_CHAT_WINDOWS do
|
||||||
SetChatWindowSize(i, 14)
|
SetChatWindowSize(i, 14)
|
||||||
@@ -144,14 +141,10 @@ frame:RegisterEvent("PLAYER_LOGIN")
|
|||||||
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
|
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
|
||||||
frame:SetScript("OnEvent", function(self, event, ...)
|
frame:SetScript("OnEvent", function(self, event, ...)
|
||||||
Configure()
|
Configure()
|
||||||
C_Timer.After(1, function()
|
C_Timer.After(1, function() Configure() end)
|
||||||
Configure()
|
|
||||||
end)
|
|
||||||
end)
|
end)
|
||||||
--Configure()
|
--Configure()
|
||||||
|
|
||||||
SlashCmdList["CHANNELER"] = function(msg)
|
SlashCmdList["CHANNELER"] = function(msg) Configure() end
|
||||||
Configure()
|
|
||||||
end
|
|
||||||
SLASH_CHANNELER1 = "/fix"
|
SLASH_CHANNELER1 = "/fix"
|
||||||
SLASH_CHANNELER2 = "/f"
|
SLASH_CHANNELER2 = "/f"
|
||||||
|
Reference in New Issue
Block a user