aboutsummaryrefslogtreecommitdiff
path: root/builtin/game
diff options
context:
space:
mode:
authorWuzzy <wuzzy2@mail.ru>2020-03-14 14:01:22 +0000
committerGitHub <noreply@github.com>2020-03-14 15:01:22 +0100
commit1441281809d9961ff7498df86601db151956b030 (patch)
tree7f4fc3b4c490cd62337cfefa3e5dcd785e37cb31 /builtin/game
parent8546d6089a89a4e34219fc10af088394a2eb3b1c (diff)
downloadminetest-1441281809d9961ff7498df86601db151956b030.tar.gz
minetest-1441281809d9961ff7498df86601db151956b030.tar.bz2
minetest-1441281809d9961ff7498df86601db151956b030.zip
Fix some chatcommands not returning a value (#9503)
Diffstat (limited to 'builtin/game')
-rw-r--r--builtin/game/chat.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/game/chat.lua b/builtin/game/chat.lua
index c7162aae1..fd1379162 100644
--- a/builtin/game/chat.lua
+++ b/builtin/game/chat.lua
@@ -115,6 +115,7 @@ core.register_chatcommand("me", {
privs = {shout=true},
func = function(name, param)
core.chat_send_all("* " .. name .. " " .. param)
+ return true
end,
})
@@ -919,6 +920,7 @@ core.register_chatcommand("shutdown", {
core.chat_send_all("*** Server shutting down (operator request).")
end
core.request_shutdown(message:trim(), core.is_yes(reconnect), delay)
+ return true
end,
})
@@ -1001,6 +1003,7 @@ core.register_chatcommand("clearobjects", {
core.clear_objects(options)
core.log("action", "Object clearing done.")
core.chat_send_all("*** Cleared all objects.")
+ return true
end,
})