1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-15 18:57:08 +00:00

Chatcommand: Show help message if func returns false without message

#9440
This commit is contained in:
HybridDog 2020-10-03 18:33:43 +02:00 committed by GitHub
parent 947466ab28
commit 4b423ee9b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View file

@ -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: