summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHybridDog <3192173+HybridDog@users.noreply.github.com>2020-10-03 18:33:43 +0200
committerGitHub <noreply@github.com>2020-10-03 17:33:43 +0100
commit4b423ee9b12aabe6ccd6a8e7dbc7db1d89dc365b (patch)
tree85329034bc72cc9a307047a91ffbd8245d972124 /doc
parent947466ab28129fd69e6630974c6c4e901f2bebc6 (diff)
downloadminetest-4b423ee9b12aabe6ccd6a8e7dbc7db1d89dc365b.tar.gz
minetest-4b423ee9b12aabe6ccd6a8e7dbc7db1d89dc365b.tar.bz2
minetest-4b423ee9b12aabe6ccd6a8e7dbc7db1d89dc365b.zip
Chatcommand: Show help message if func returns false without message
#9440
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index bd845aad3..edacfe05f 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -7949,6 +7949,8 @@ Used by `minetest.register_chatcommand`.
func = function(name, param),
-- Called when command is run. Returns boolean success and text output.
+ -- Special case: The help message is shown to the player if `func`
+ -- returns false without a text output.
}
Note that in params, use of symbols is as follows: