1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02: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
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: