From 2065b0b55b9592b351cd746693121f59a8f0404e Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Thu, 1 Aug 2019 00:03:36 -0700 Subject: [PATCH] Fix logging, and allow messages to spool for 7+30 days instead of 3+30 --- mods/telex/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/telex/init.lua b/mods/telex/init.lua index fde6341..ef9e949 100644 --- a/mods/telex/init.lua +++ b/mods/telex/init.lua @@ -137,14 +137,14 @@ function telex.deliver(message) pmeta:set_string("telex_mbox", telex.encode(mbox)) minetest.chat_send_player(message.to, "You have a new message from <" .. message.from .. ">, use a terminal to read your messages"); - minetest.log("action", "delivered a message from <" .. message.from .. "> back to <" .. message.to .. ">") + minetest.log("action", "delivered a message from <" .. message.from .. "> to <" .. message.to .. ">") else -- append to spool - message.age = 3 * 86400 -- 3 days max in spool + message.age = 7 * 86400 -- 7 days max in spool local spool = telex.decode(S:get_string("telex_spool")) table.insert(spool, message) S:set_string("telex_spool", telex.encode(spool)) - minetest.log("action", "spooled a message from <" .. message.from .. "> back to <" .. message.to .. ">") + minetest.log("action", "spooled a message from <" .. message.from .. "> to <" .. message.to .. ">") end end @@ -152,7 +152,7 @@ end function telex.retour(message) if message.from == "MAILER-DEAMON" then -- discard, we tried hard enough! - minetest.log("action", "discarded an expired spool message from <" .. message.from .. "> back to <" .. message.to .. ">") + minetest.log("action", "discarded an expired spool message from <" .. message.from .. "> to <" .. message.to .. ">") return end -- 2.11.4.GIT