Skip to content

Commit 8ffe959

Browse files
linewriter1024rubenwardy
authored andcommittedAug 7, 2019
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.
1 parent e788ee2 commit 8ffe959

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎builtin/game/chatcommands.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ core.register_on_chat_message(function(name, message)
2929
core.set_last_run_mod(cmd_def.mod_origin)
3030
local _, result = cmd_def.func(name, param)
3131
if result then
32-
core.chat_send_player(name, message)
32+
core.chat_send_player(name, result)
3333
end
3434
else
3535
core.chat_send_player(name, "You don't have permission"

0 commit comments

Comments
 (0)
Please sign in to comment.