From 6df1590803bf89eca455238aae006a74c98b8ce2 Mon Sep 17 00:00:00 2001 From: Cora de la Mouche <73539712+corarona@users.noreply.github.com> Date: Fri, 23 Jun 2023 18:26:33 +0200 Subject: Add list setting -> chatcmd def for external access (#62) * 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 --- builtin/common/chatcommands.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'builtin') 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 | add | list" + def.list_setting = setting function def.func(param) local list = (minetest.settings:get(setting) or ""):split(",") if param == "list" then -- cgit v1.2.3