diff options
Diffstat (limited to 'builtin/common/information_formspecs.lua')
-rwxr-xr-x[-rw-r--r--] | builtin/common/information_formspecs.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/common/information_formspecs.lua b/builtin/common/information_formspecs.lua index 1445a017c..d4426aff4 100644..100755 --- a/builtin/common/information_formspecs.lua +++ b/builtin/common/information_formspecs.lua @@ -57,11 +57,11 @@ local function build_chatcommands_formspec(name, sel, copy) .. "any entry in the list.").. "\n" .. S("Double-click to copy the entry to the chat history.") - local privs = core.get_player_privs(name) + local check_player_privs = core.check_player_privs for i, data in ipairs(mod_cmds) do rows[#rows + 1] = COLOR_BLUE .. ",0," .. F(data[1]) .. "," for j, cmds in ipairs(data[2]) do - local has_priv = privs[cmds[2].privs] + local has_priv = check_player_privs(name, cmds[2].privs) rows[#rows + 1] = ("%s,1,%s,%s"):format( has_priv and COLOR_GREEN or COLOR_GRAY, cmds[1], F(cmds[2].params)) |