Skip to content

Commit

Permalink
fix(addCommand): longString - empty message (#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
mindiw01 authored Jul 5, 2024
1 parent 78dbac6 commit 7ecd7dc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions imports/addCommand/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ local function parseArguments(source, args, raw, params)
value = false
end
elseif param.type == 'longString' and i == paramsNum then
local start = raw:find(arg, 1, true)
value = start and raw:sub(start)
if arg then
local start = raw:find(arg, 1, true)
value = start and raw:sub(start)
else
value = nil
end
else
value = arg
end
Expand Down

0 comments on commit 7ecd7dc

Please sign in to comment.