Fix nil in network messenger
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user