diff options
author | Craig Davison <craig.davison3@gmail.com> | 2015-06-14 21:28:51 +0100 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-06-14 23:53:30 +0200 |
commit | ecdfbfc8dc1bc62acce0b041b5a3349f886843ec (patch) | |
tree | 13b350d8b8b2488c34fb94f56e23a5dbb846c714 /builtin/game/chatcommands.lua | |
parent | ee38bcd307e1a2e0e8b010956eff432329f3e8d8 (diff) | |
download | minetest-ecdfbfc8dc1bc62acce0b041b5a3349f886843ec.tar.gz minetest-ecdfbfc8dc1bc62acce0b041b5a3349f886843ec.tar.bz2 minetest-ecdfbfc8dc1bc62acce0b041b5a3349f886843ec.zip |
Remove reference to deprecated privilege
Diffstat (limited to 'builtin/game/chatcommands.lua')
-rw-r--r-- | builtin/game/chatcommands.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/game/chatcommands.lua b/builtin/game/chatcommands.lua index d5d9c3d25..d656f1c91 100644 --- a/builtin/game/chatcommands.lua +++ b/builtin/game/chatcommands.lua @@ -189,7 +189,7 @@ core.register_chatcommand("revoke", { local revoke_privs = core.string_to_privs(revoke_priv_str) local privs = core.get_player_privs(revoke_name) for priv, _ in pairs(revoke_privs) do - if priv ~= "interact" and priv ~= "shout" and priv ~= "interact_extra" and + if priv ~= "interact" and priv ~= "shout" and not core.check_player_privs(name, {privs=true}) then return false, "Your privileges are insufficient." end |