aboutsummaryrefslogtreecommitdiff
path: root/data/mods/default
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-12-02 16:24:56 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-12-02 16:24:56 +0200
commitc2d266efc69ad9a578e50dd0a2594f3c20d14eba (patch)
treea5f303315277f79dd45e839ad2fcfbde27f31b79 /data/mods/default
parentec1859b095e1a4319afbc9de9b5806bf0546afb0 (diff)
downloadminetest-c2d266efc69ad9a578e50dd0a2594f3c20d14eba.tar.gz
minetest-c2d266efc69ad9a578e50dd0a2594f3c20d14eba.tar.bz2
minetest-c2d266efc69ad9a578e50dd0a2594f3c20d14eba.zip
Remove unnecessary debug output from mods/default/init.lua
Diffstat (limited to 'data/mods/default')
-rw-r--r--data/mods/default/init.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua
index 0ea6779c3..afd22d6bb 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