Fix nil in network messenger
This commit is contained in:
@@ -130,9 +130,9 @@ function shared.NetworkMessenger.Init()
|
|||||||
end
|
end
|
||||||
local command = strtrim(parts[1])
|
local command = strtrim(parts[1])
|
||||||
if command == "message" then
|
if command == "message" then
|
||||||
local message = strtrim(parts[2])
|
local message = strtrim(tostring(parts[2]))
|
||||||
local channel = strtrim(parts[3])
|
local channel = strtrim(tostring(parts[3]))
|
||||||
local target = strtrim(parts[4])
|
local target = strtrim(tostring(parts[4]))
|
||||||
if Heimdall_Data.config.networkMessenger.debug then
|
if Heimdall_Data.config.networkMessenger.debug then
|
||||||
print(string.format("[%s] Received message command: %s %s %s", ModuleName, message, channel, target))
|
print(string.format("[%s] Received message command: %s %s %s", ModuleName, message, channel, target))
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user