diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2019-07-20 18:22:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-20 18:22:32 +0200 |
commit | 69bf964241666428e8d1663164a443654f51d53a (patch) | |
tree | a8f90fbba7011a5aebd41c8fe9c867a13d50ceab /builtin/common/chatcommands.lua | |
parent | 9e005847302680dfc5c2fcadab81f5f1384db2d9 (diff) | |
download | dragonfireclient-69bf964241666428e8d1663164a443654f51d53a.tar.xz |
Add /help formspec for commands and privileges (#8385)
* Trigger for 'all' as well
* Add description textarea, double-click to copy
Diffstat (limited to 'builtin/common/chatcommands.lua')
-rw-r--r-- | builtin/common/chatcommands.lua | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/builtin/common/chatcommands.lua b/builtin/common/chatcommands.lua index 52edda659..71204657c 100644 --- a/builtin/common/chatcommands.lua +++ b/builtin/common/chatcommands.lua @@ -77,13 +77,6 @@ local function do_help_cmd(name, param) end table.sort(cmds) return true, gettext("Available commands:").."\n"..table.concat(cmds, "\n") - elseif INIT == "game" and param == "privs" then - local privs = {} - for priv, def in pairs(core.registered_privileges) do - privs[#privs + 1] = priv .. ": " .. def.description - end - table.sort(privs) - return true, "Available privileges:\n"..table.concat(privs, "\n") else local cmd = param local def = core.registered_chatcommands[cmd] |