mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-27 21:04:45 +00:00
fix(addCommand): longString - empty message (#611)
This commit is contained in:
1 parent
78dbac6aac
commit
7ecd7dc21f
1 file changed
+6
-2
@@ -46,8 +46,12 @@ local function parseArguments(source, args, raw, params)
|
|||||||
value = false
|
value = false
|
||||||
end
|
end
|
||||||
elseif param.type == 'longString' and i == paramsNum then
|
elseif param.type == 'longString' and i == paramsNum then
|
||||||
local start = raw:find(arg, 1, true)
|
if arg then
|
||||||
value = start and raw:sub(start)
|
local start = raw:find(arg, 1, true)
|
||||||
|
value = start and raw:sub(start)
|
||||||
|
else
|
||||||
|
value = nil
|
||||||
|
end
|
||||||
else
|
else
|
||||||
value = arg
|
value = arg
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user