From: Perttu Ahola Date: Fri, 2 Dec 2011 14:24:56 +0000 (+0200) Subject: Remove unnecessary debug output from mods/default/init.lua X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=c2d266efc69ad9a578e50dd0a2594f3c20d14eba;p=zefram%2Fminetest%2Fminetest_engine.git Remove unnecessary debug output from mods/default/init.lua --- diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua index 0ea6779c..afd22d6b 100644 --- a/data/mods/default/init.lua +++ b/data/mods/default/init.lua @@ -1476,7 +1476,7 @@ end minetest.register_on_punchnode(on_punchnode) minetest.register_on_chat_message(function(name, message) - print("default on_chat_message: name="..dump(name).." message="..dump(message)) + --print("default on_chat_message: name="..dump(name).." message="..dump(message)) local cmd = "/giveme" if message:sub(0, #cmd) == cmd then if not minetest.get_player_privs(name)["give"] then @@ -1506,8 +1506,6 @@ minetest.register_on_chat_message(function(name, message) end local cmd = "/give" if message:sub(0, #cmd) == cmd then - print("minetest.get_player_privs(name)=" - ..dump(minetest.get_player_privs(name))) if not minetest.get_player_privs(name)["give"] then minetest.chat_send_player(name, "you don't have permission to give") return true -- Handled chat message