Fix nil in network messenger

This commit is contained in:
2025-01-21 09:13:33 +01:00
parent 7293f5a8fa
commit 19af9894e5

View File

@@ -130,9 +130,9 @@ function shared.NetworkMessenger.Init()
end
local command = strtrim(parts[1])
if command == "message" then
local message = strtrim(parts[2])
local channel = strtrim(parts[3])
local target = strtrim(parts[4])
local message = strtrim(tostring(parts[2]))
local channel = strtrim(tostring(parts[3]))
local target = strtrim(tostring(parts[4]))
if Heimdall_Data.config.networkMessenger.debug then
print(string.format("[%s] Received message command: %s %s %s", ModuleName, message, channel, target))
end