mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
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.
This commit is contained in:
parent
e788ee283f
commit
8ffe95913b
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user