This commit is contained in:
Er2 2021-07-27 11:15:28 +03:00
parent 2c660c0a09
commit 60c7c2c60b
4 changed files with 12 additions and 9 deletions

View file

@ -38,7 +38,7 @@ local function receiveUpdate(self, update)
and not to then return end
local args = {}
txt = msg.text:sub(#cmd + #(to or {}) + 3)
msg.text = msg.text:sub(#cmd + #(to or '') + 3)
for s in msg.text:gmatch '%S+' do table.insert(args, s) end
msg.cmd = cmd