diff options
author | DS <vorunbekannt75@web.de> | 2019-09-29 13:40:15 +0200 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2019-09-29 13:40:15 +0200 |
commit | 16865a5bf65daae6131f1ad3d0df98be8b01f0f0 (patch) | |
tree | 809689debb09c9347fcde0db9e2ba74e76ceff69 | |
parent | b79741c90ffffac6fb24783b38c5b507316cbcc8 (diff) | |
download | minetest-16865a5bf65daae6131f1ad3d0df98be8b01f0f0.tar.gz minetest-16865a5bf65daae6131f1ad3d0df98be8b01f0f0.tar.bz2 minetest-16865a5bf65daae6131f1ad3d0df98be8b01f0f0.zip |
Allow grep-ing for on_grant and on_revoke (#8958)
Just two code comments are added.
-rw-r--r-- | builtin/game/chat.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/game/chat.lua b/builtin/game/chat.lua index f5b687732..ad703b94c 100644 --- a/builtin/game/chat.lua +++ b/builtin/game/chat.lua @@ -186,6 +186,7 @@ local function handle_grant_command(caller, grantname, grantprivstr) return false, privs_unknown end for priv, _ in pairs(grantprivs) do + -- call the on_grant callbacks core.run_priv_callbacks(grantname, priv, caller, "grant") end core.set_player_privs(grantname, privs) @@ -258,6 +259,7 @@ core.register_chatcommand("revoke", { end for priv, _ in pairs(revoke_privs) do + -- call the on_revoke callbacks core.run_priv_callbacks(revoke_name, priv, name, "revoke") end |