aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-04-10 00:41:28 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-04-10 00:41:28 +0300
commit8742b3dab21a60ae78456d54212c18c764e6dc7f (patch)
tree426bd0517c70c6227a8a4f58b633b718d7cb1726 /builtin
parent93cdc9b9dc240aef70ec5016552c7f36ee019865 (diff)
downloadminetest-8742b3dab21a60ae78456d54212c18c764e6dc7f.tar.gz
minetest-8742b3dab21a60ae78456d54212c18c764e6dc7f.tar.bz2
minetest-8742b3dab21a60ae78456d54212c18c764e6dc7f.zip
basic_privs to allow granting/revoking interact_extra too
Diffstat (limited to 'builtin')
-rw-r--r--builtin/chatcommands.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/chatcommands.lua b/builtin/chatcommands.lua
index a7061e3a3..e5d31c6aa 100644
--- a/builtin/chatcommands.lua
+++ b/builtin/chatcommands.lua
@@ -130,7 +130,7 @@ minetest.register_chatcommand("grant", {
local privs = minetest.get_player_privs(grantname)
local privs_known = true
for priv, _ in pairs(grantprivs) do
- if priv ~= "interact" and priv ~= "shout" and not minetest.check_player_privs(name, {privs=true}) then
+ if priv ~= "interact" and priv ~= "shout" and priv ~= "interact_extra" and not minetest.check_player_privs(name, {privs=true}) then
minetest.chat_send_player(name, "Your privileges are insufficient.")
return
end
@@ -168,7 +168,7 @@ minetest.register_chatcommand("revoke", {
local revokeprivs = minetest.string_to_privs(revokeprivstr)
local privs = minetest.get_player_privs(revokename)
for priv, _ in pairs(revokeprivs) do
- if priv ~= "interact" and priv ~= "shout" and not minetest.check_player_privs(name, {privs=true}) then
+ if priv ~= "interact" and priv ~= "shout" and priv ~= "interact_extra" and not minetest.check_player_privs(name, {privs=true}) then
minetest.chat_send_player(name, "Your privileges are insufficient.")
return
end