diff --git a/Modules/Messenger.lua b/Modules/Messenger.lua index a40a590..035e8e7 100644 --- a/Modules/Messenger.lua +++ b/Modules/Messenger.lua @@ -13,18 +13,18 @@ function shared.Messenger.Init() ---@type table local channelIdMap = {} - local function FindOrJoinChannel(channelName, password) - local function GetChannelId(channelName) - local channels = { GetChannelList() } - for i = 1, #channels, 2 do - local id = channels[i] - local name = channels[i + 1] - if name == channelName then - return id - end + local function GetChannelId(channelName) + local channels = { GetChannelList() } + for i = 1, #channels, 2 do + local id = channels[i] + local name = channels[i + 1] + if name == channelName then + return id end end + end + local function FindOrJoinChannel(channelName, password) local channelId = GetChannelId(channelName) if not channelId then print("Channel", tostring(channelName), "not found, joining") @@ -48,7 +48,7 @@ function shared.Messenger.Init() end end ----@diagnostic disable-next-line: missing-fields + ---@diagnostic disable-next-line: missing-fields if not shared.messenger then shared.messenger = {} end if not shared.messenger.queue then shared.messenger.queue = {} end if not shared.messenger.ticker then