diff options
author | DannyDark <the_skeleton_of_a_child@yahoo.co.uk> | 2012-11-29 19:00:33 +0000 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-11-30 22:12:21 +0200 |
commit | 84ace278729a965c8eecc6ee1b6bbedaa27705f0 (patch) | |
tree | 823c07f689aff9c5ee001366ebfc7b9d156d5a43 /builtin | |
parent | c1d8eeb70a63a73739a38e652a2b5462e08588ca (diff) | |
download | minetest-84ace278729a965c8eecc6ee1b6bbedaa27705f0.tar.gz minetest-84ace278729a965c8eecc6ee1b6bbedaa27705f0.tar.bz2 minetest-84ace278729a965c8eecc6ee1b6bbedaa27705f0.zip |
Log /grant and /revoke command usage
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/chatcommands.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/chatcommands.lua b/builtin/chatcommands.lua index f25a276ea..f41f9afe4 100644 --- a/builtin/chatcommands.lua +++ b/builtin/chatcommands.lua @@ -138,6 +138,7 @@ minetest.register_chatcommand("grant", { return end minetest.set_player_privs(grantname, privs) + minetest.log(name..' granted ('..minetest.privs_to_string(grantprivs, ', ')..') privileges to '..grantname) minetest.chat_send_player(name, "Privileges of "..grantname..": "..minetest.privs_to_string(minetest.get_player_privs(grantname), ' ')) if grantname ~= name then minetest.chat_send_player(grantname, name.." granted you privileges: "..minetest.privs_to_string(grantprivs, ' ')) @@ -175,6 +176,7 @@ minetest.register_chatcommand("revoke", { end end minetest.set_player_privs(revokename, privs) + minetest.log(name..' revoked ('..minetest.privs_to_string(revokeprivs, ', ')..') privileges from '..revokename) minetest.chat_send_player(name, "Privileges of "..revokename..": "..minetest.privs_to_string(minetest.get_player_privs(revokename), ' ')) if revokename ~= name then minetest.chat_send_player(revokename, name.." revoked privileges from you: "..minetest.privs_to_string(revokeprivs, ' ')) |