aboutsummaryrefslogtreecommitdiff
path: root/builtin/common/chatcommands.lua
diff options
context:
space:
mode:
authorCora de la Mouche <73539712+corarona@users.noreply.github.com>2023-06-23 18:26:33 +0200
committerGitHub <noreply@github.com>2023-06-23 18:26:33 +0200
commit6df1590803bf89eca455238aae006a74c98b8ce2 (patch)
tree346ed64889b69f3c1e52985b0e0166fa4685c5ff /builtin/common/chatcommands.lua
parent2c050a42d7d4c33552834a219fb8247b7e70a69e (diff)
downloaddragonfireclient-master.tar.xz
Add list setting -> chatcmd def for external access (#62)HEADmaster
* Add list setting -> chatcmd def for external access * Document the _list_setting field ... in both the chatcmd def and minetest.register_list_command * doc: add missing 'by' * remove underscore (_list_setting -> list_setting) --------- Co-authored-by: Lizzy Fleckenstein <eliasfleckenstein@web.de>
Diffstat (limited to 'builtin/common/chatcommands.lua')
-rw-r--r--builtin/common/chatcommands.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/common/chatcommands.lua b/builtin/common/chatcommands.lua
index 817f1f526..cf20ec0d8 100644
--- a/builtin/common/chatcommands.lua
+++ b/builtin/common/chatcommands.lua
@@ -74,6 +74,7 @@ if INIT == "client" then
local def = {}
def.description = desc
def.params = "del <item> | add <item> | list"
+ def.list_setting = setting
function def.func(param)
local list = (minetest.settings:get(setting) or ""):split(",")
if param == "list" then