Clean up some warnings
This commit is contained in:
@@ -8,7 +8,7 @@ function shared.Messenger.Init()
|
||||
---@class Message
|
||||
---@field message string
|
||||
---@field channel string
|
||||
---@field data string|number
|
||||
---@field data string
|
||||
|
||||
---@type table<string, number>
|
||||
local channelIdMap = {}
|
||||
@@ -48,6 +48,7 @@ function shared.Messenger.Init()
|
||||
end
|
||||
end
|
||||
|
||||
---@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
|
||||
@@ -73,7 +74,7 @@ function shared.Messenger.Init()
|
||||
channelId = FindOrJoinChannel(message.data)
|
||||
end
|
||||
print("Channel resolved to id", channelId)
|
||||
message.data = channelId
|
||||
message.data = tostring(channelId)
|
||||
end
|
||||
|
||||
table.remove(shared.messenger.queue, 1)
|
||||
|
@@ -357,6 +357,7 @@ function shared.Whoer.Init()
|
||||
end
|
||||
lastQuery = query
|
||||
--print(string.format("Running who query: %s", tostring(query.query)))
|
||||
---@diagnostic disable-next-line: param-type-mismatch
|
||||
SetWhoToUI(1)
|
||||
SendWho(query.query)
|
||||
end
|
||||
@@ -386,7 +387,8 @@ function shared.Whoer.Init()
|
||||
local ret = {}
|
||||
for _, player in pairs(HeimdallStinkies) do
|
||||
if Heimdall_Data.config.who.zoneNotifyFor[player.zone] then
|
||||
ret[#ret + 1] = string.format("%s/%s (%s) %s", player.name, player.class, player.zone, player.stinky and "(!!!!)" or "")
|
||||
ret[#ret + 1] = string.format("%s/%s (%s) %s", player.name, player.class, player.zone,
|
||||
player.stinky and "(!!!!)" or "")
|
||||
end
|
||||
end
|
||||
return ret
|
||||
|
Reference in New Issue
Block a user