mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 04:51:40 +09:00
Temp fix for command quotes error
This commit is contained in:
@@ -622,7 +622,7 @@ function Commands.run_command(command_event)
|
|||||||
-- splits the arguments
|
-- splits the arguments
|
||||||
local input_string = command_event.parameter or ''
|
local input_string = command_event.parameter or ''
|
||||||
local quote_params = {} -- stores any " " params
|
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
|
-- finds all " " params are removes spaces for the next part
|
||||||
local no_spaces = w:gsub('%s','_')
|
local no_spaces = w:gsub('%s','_')
|
||||||
local no_quotes = w:sub(2,-2)
|
local no_quotes = w:sub(2,-2)
|
||||||
|
|||||||
Reference in New Issue
Block a user