Bug Fixes Round One

This commit is contained in:
Cooldude2606
2018-10-26 16:20:09 +01:00
parent 3e3e9b747c
commit b9435d08ba
6 changed files with 8 additions and 5 deletions

View File

@@ -146,7 +146,8 @@ function commands.validate_args(event)
index = index+1
if not word then break end
local pos, _pos = word:find('"')
while pos and pos == _pos do
local hasSecond = pos and word:find('"',pos+1) or nil
while not hasSecond and pos and pos == _pos do
local next = table.remove(words,index+1)
if not next then return commands.error('invalid-parse') end
words[index] = words[index]..' '..next