Skip to content

Commit

Permalink
Fix usage of wrong variable in builtin chat command handling (#8762)
Browse files Browse the repository at this point in the history
This was introduced in commit 8e75785 and resulted in chat commands not
returning their output text.
  • Loading branch information
linewriter1024 authored and rubenwardy committed Aug 7, 2019
1 parent e788ee2 commit 8ffe959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/game/chatcommands.lua
Expand Up @@ -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"
Expand Down

0 comments on commit 8ffe959

Please sign in to comment.