Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
fix invalid last arg for executeCommandHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
nrzull committed Jun 19, 2019
1 parent 2f27632 commit ed1b37e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion chat2_server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,14 @@ function handleCommand(client, input)
local splittedInput = split(input, " ")
local slashCmd = table.remove(splittedInput, 1)
local cmd = utf8.sub(slashCmd, 2, utf8.len(slashCmd))
executeCommandHandler(cmd, client, unpack(splittedInput))

local args = ""
for _, arg in ipairs(splittedInput) do
args = string.format("%s %s", args, arg)
end
args = utf8.sub(args, 2, utf8.len(args))

executeCommandHandler(cmd, client, args)
end

-- listen for "say / teamsay" from player console
Expand Down

0 comments on commit ed1b37e

Please sign in to comment.