summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 6fd3fed..71895e3 100644
--- a/init.lua
+++ b/init.lua
@@ -169,6 +169,7 @@ minetest.register_on_player_receive_fields(function(player,formname,fields)
elseif fields.delete then
if mail.messages[name][mail.highlightedmessages[name]] then table.remove(mail.messages[name],mail.highlightedmessages[name]) end
mail.showinbox(name)
+ mail.save()
end
return true
elseif formname == "mail:compose" then