projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e788ee2
)
Fix usage of wrong variable in builtin chat command handling (#8762)
author
Beha
<shacknetisp@mail.com>
Wed, 7 Aug 2019 18:32:40 +0000
(14:32 -0400)
committer
rubenwardy
<rw@rubenwardy.com>
Wed, 7 Aug 2019 18:32:40 +0000
(19:32 +0100)
This was introduced in commit
8e75785
and resulted in chat commands not
returning their output text.
builtin/game/chatcommands.lua
patch
|
blob
|
history
diff --git
a/builtin/game/chatcommands.lua
b/builtin/game/chatcommands.lua
index f05ca0bfdfe3795c830560111892fda033ce24de..b2a49863ed7c818d91c6449cef83cb6c2c706507 100644
(file)
--- 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"