projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a35e4bd
)
Take out the "Privileges of foo are hidden from you." response of /privs
author
Perttu Ahola
<celeron55@gmail.com>
Sat, 19 May 2012 09:42:33 +0000
(12:42 +0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Sat, 19 May 2012 09:42:55 +0000
(12:42 +0300)
builtin/chatcommands.lua
patch
|
blob
|
history
diff --git
a/builtin/chatcommands.lua
b/builtin/chatcommands.lua
index 7845c7083c283c2928d622ddc6d28c5a676e5118..eaafe9ee855da374c8523e410a25ecb46c5cc8ce 100644
(file)
--- 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,