Temp fix for command quotes error

This commit is contained in:
Cooldude2606
2019-06-07 21:06:52 +01:00
parent 408720059b
commit 0e19fc9f17

View File

@@ -622,7 +622,7 @@ function Commands.run_command(command_event)
-- splits the arguments
local input_string = command_event.parameter or ''
local quote_params = {} -- stores any " " params
input_string = input_string:gsub('"[^"]-"',function(w)
input_string = input_string:gsub(' "[^"]-"',function(w)
-- finds all " " params are removes spaces for the next part
local no_spaces = w:gsub('%s','_')
local no_quotes = w:sub(2,-2)