Take out the "Privileges of foo are hidden from you." response of /privs

master
Perttu Ahola 2012-05-19 12:42:33 +03:00
parent a35e4bdbda
commit 7a427c9070
1 changed files with 3 additions and 2 deletions

View File

@ -101,9 +101,10 @@ minetest.register_chatcommand("privs", {
if param == "" then if param == "" then
param = name param = name
else 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.") minetest.chat_send_player(name, "Privileges of "..param.." are hidden from you.")
end return
end]]
end end
minetest.chat_send_player(name, "Privileges of "..param..": "..minetest.privs_to_string(minetest.get_player_privs(param), ' ')) minetest.chat_send_player(name, "Privileges of "..param..": "..minetest.privs_to_string(minetest.get_player_privs(param), ' '))
end, end,