Simplify message notifications a bit.

This commit is contained in:
Auke Kok 2019-08-25 22:31:54 -07:00
parent 29f14abc54
commit 01e31f4288

View File

@ -218,8 +218,7 @@ function telex.deliver(msgid, msg)
local mbox = telex.decode(pmeta:get_string("telex_mbox")) local mbox = telex.decode(pmeta:get_string("telex_mbox"))
table.insert(mbox, msgid) table.insert(mbox, msgid)
pmeta:set_string("telex_mbox", telex.encode(mbox)) pmeta:set_string("telex_mbox", telex.encode(mbox))
minetest.chat_send_player(msg.to, "You have a new message from <" .. minetest.chat_send_player(msg.to, "You have a new message from <" .. msg.from .. ">")
msg.from .. ">, use a terminal to read your messages");
minetest.log("action", "telex: delivered " .. msgid .. " from <" .. msg.from .. "> to <" .. msg.to .. ">") minetest.log("action", "telex: delivered " .. msgid .. " from <" .. msg.from .. "> to <" .. msg.to .. ">")
else else
-- append to spool -- append to spool