Skip to content

Commit 16865a5

Browse files
DesourSmallJoker
authored andcommittedSep 29, 2019
Allow grep-ing for on_grant and on_revoke (#8958)
Just two code comments are added.
1 parent b79741c commit 16865a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

Diff for: ‎builtin/game/chat.lua

+2
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ local function handle_grant_command(caller, grantname, grantprivstr)
186186
return false, privs_unknown
187187
end
188188
for priv, _ in pairs(grantprivs) do
189+
-- call the on_grant callbacks
189190
core.run_priv_callbacks(grantname, priv, caller, "grant")
190191
end
191192
core.set_player_privs(grantname, privs)
@@ -258,6 +259,7 @@ core.register_chatcommand("revoke", {
258259
end
259260

260261
for priv, _ in pairs(revoke_privs) do
262+
-- call the on_revoke callbacks
261263
core.run_priv_callbacks(revoke_name, priv, name, "revoke")
262264
end
263265

0 commit comments

Comments
 (0)
Please sign in to comment.