summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorBeha <shacknetisp@mail.com>2019-08-07 14:32:40 -0400
committerrubenwardy <rw@rubenwardy.com>2019-08-07 19:32:40 +0100
commit8ffe95913b717f516cc2c231f3189a20997d24c1 (patch)
treec6296213ce4b1b66af51d1a8eca81b215344eed8 /builtin
parente788ee283fe7eb8151898916f72c2cf803255fa4 (diff)
downloadminetest-8ffe95913b717f516cc2c231f3189a20997d24c1.tar.gz
minetest-8ffe95913b717f516cc2c231f3189a20997d24c1.tar.bz2
minetest-8ffe95913b717f516cc2c231f3189a20997d24c1.zip
Fix usage of wrong variable in builtin chat command handling (#8762)
This was introduced in commit 8e75785 and resulted in chat commands not returning their output text.
Diffstat (limited to 'builtin')
-rw-r--r--builtin/game/chatcommands.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/game/chatcommands.lua b/builtin/game/chatcommands.lua
index f05ca0bfd..b2a49863e 100644
--- a/builtin/game/chatcommands.lua
+++ b/builtin/game/chatcommands.lua
@@ -29,7 +29,7 @@ core.register_on_chat_message(function(name, message)
core.set_last_run_mod(cmd_def.mod_origin)
local _, result = cmd_def.func(name, param)
if result then
- core.chat_send_player(name, message)
+ core.chat_send_player(name, result)
end
else
core.chat_send_player(name, "You don't have permission"