summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-05-19 12:42:33 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-05-19 12:42:55 +0300
commit7a427c9070ce7faa4e870e685fe096303a44b1f9 (patch)
tree06520153b7dbd6cc32cd8ebbd97bed158f93bc91
parenta35e4bdbda78fe044c263b7866fd0c2db16565da (diff)
downloadminetest-7a427c9070ce7faa4e870e685fe096303a44b1f9.tar.gz
minetest-7a427c9070ce7faa4e870e685fe096303a44b1f9.tar.bz2
minetest-7a427c9070ce7faa4e870e685fe096303a44b1f9.zip
Take out the "Privileges of foo are hidden from you." response of /privs
-rw-r--r--builtin/chatcommands.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/builtin/chatcommands.lua b/builtin/chatcommands.lua
index 7845c7083..eaafe9ee8 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,