From 287559ac971f8d231761ecf5f721a05ced8665d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Mart=C3=ADnez?= Date: Sat, 26 Apr 2014 10:04:30 -0300 Subject: [PATCH] Print actions to log file when players write to signs. --- signs_lib/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/signs_lib/init.lua b/signs_lib/init.lua index 070082d5..9a0a8976 100644 --- a/signs_lib/init.lua +++ b/signs_lib/init.lua @@ -507,7 +507,7 @@ minetest.register_node(":default:sign_wall", { end, on_receive_fields = function(pos, formname, fields, sender) if fields and (not fields.quit) and fields.text then - print(S("%s wrote \"%s\" to sign at %s"):format( + minetest.log("action", S("%s wrote \"%s\" to sign at %s"):format( (sender:get_player_name() or ""), fields.text, minetest.pos_to_string(pos) @@ -547,7 +547,7 @@ minetest.register_node(":signs:sign_yard", { end, on_receive_fields = function(pos, formname, fields, sender) if fields and (not fields.quit) and fields.text then - print(S("%s wrote \"%s\" to sign at %s"):format( + minetest.log("action", S("%s wrote \"%s\" to sign at %s"):format( (sender:get_player_name() or ""), fields.text, minetest.pos_to_string(pos) @@ -677,7 +677,7 @@ function signs_lib.register_fence_with_sign(fencename, fencewithsignname) end def_sign.on_receive_fields = function(pos, formname, fields, sender, ...) if fields and (not fields.quit) and fields.text then - print(S("%s wrote \"%s\" to sign at %s"):format( + minetest.log("action", S("%s wrote \"%s\" to sign at %s"):format( (sender:get_player_name() or ""), fields.text, minetest.pos_to_string(pos)