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

This commit is contained in:
Perttu Ahola 2012-05-19 12:42:33 +03:00 committed by Nils Dagsson Moskopp
parent e50d7926d6
commit 235ac5dae5
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 3 additions and 2 deletions

View File

@ -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,