]> git.lizzy.rs Git - minetest.git/commitdiff
Fix usage of wrong variable in builtin chat command handling (#8762)
authorBeha <shacknetisp@mail.com>
Wed, 7 Aug 2019 18:32:40 +0000 (14:32 -0400)
committerrubenwardy <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

index f05ca0bfdfe3795c830560111892fda033ce24de..b2a49863ed7c818d91c6449cef83cb6c2c706507 100644 (file)
@@ -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"