mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-04 21:50:28 -04:00
Add empty trash button
This commit is contained in:
parent
8c20aeba5b
commit
f5198b9187
11 changed files with 269 additions and 271 deletions
|
@ -267,6 +267,14 @@ function mail.restore_mail(playername, msg_id)
|
|||
return
|
||||
end
|
||||
|
||||
-- clear the trash
|
||||
function mail.empty_trash(playername)
|
||||
local entry = mail.get_storage_entry(playername)
|
||||
entry.trash = {}
|
||||
mail.set_storage_entry(playername, entry)
|
||||
return
|
||||
end
|
||||
|
||||
-- add or update a contact
|
||||
function mail.update_contact(playername, contact)
|
||||
local entry = mail.get_storage_entry(playername)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue