mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-05 06:00:29 -04:00
add contacts dir, leave mail files as is
- restructured storage.lua so reading/writing json is not duplicated - when a player joins and has no contacts file yet, automatically add all players he wrote to
This commit is contained in:
parent
498ef84026
commit
f82c3d2b82
4 changed files with 78 additions and 11 deletions
1
init.lua
1
init.lua
|
@ -8,6 +8,7 @@ mail = {
|
|||
|
||||
-- mail directory
|
||||
maildir = minetest.get_worldpath().."/mails",
|
||||
contactsdir = minetest.get_worldpath().."/mails/contacts",
|
||||
|
||||
-- allow item/node attachments
|
||||
allow_attachments = minetest.settings:get("mail.allow_attachments") == "true",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue