From: Perttu Ahola Date: Sat, 19 May 2012 09:42:33 +0000 (+0300) Subject: Take out the "Privileges of foo are hidden from you." response of /privs X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=7a427c9070ce7faa4e870e685fe096303a44b1f9;p=zefram%2Fminetest%2Fminetest_engine.git Take out the "Privileges of foo are hidden from you." response of /privs --- diff --git a/builtin/chatcommands.lua b/builtin/chatcommands.lua index 7845c708..eaafe9ee 100644 --- a/builtin/chatcommands.lua +++ b/builtin/chatcommands.lua @@ -101,9 +101,10 @@ minetest.register_chatcommand("privs", { if param == "" then param = name else - if not minetest.check_player_privs(name, {privs=true}) then + --[[if not minetest.check_player_privs(name, {privs=true}) then minetest.chat_send_player(name, "Privileges of "..param.." are hidden from you.") - end + return + end]] end minetest.chat_send_player(name, "Privileges of "..param..": "..minetest.privs_to_string(minetest.get_player_privs(param), ' ')) end,