mirror of
https://github.com/mt-mods/mail.git
synced 2025-04-30 08:21:44 -04:00
partial fox for #97
This commit is contained in:
parent
fab6f1a1e5
commit
95b7f3b757
1 changed files with 3 additions and 0 deletions
|
@ -118,6 +118,7 @@ function mail.delete_mail(playername, msg_ids)
|
|||
for _, deleted_msg in ipairs(msg_ids) do
|
||||
if entry.inbox[i].id == deleted_msg then
|
||||
table.remove(entry.inbox, i)
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -125,6 +126,7 @@ function mail.delete_mail(playername, msg_ids)
|
|||
for _, deleted_msg in ipairs(msg_ids) do
|
||||
if entry.outbox[i].id == deleted_msg then
|
||||
table.remove(entry.outbox, i)
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -132,6 +134,7 @@ function mail.delete_mail(playername, msg_ids)
|
|||
for _, deleted_msg in ipairs(msg_ids) do
|
||||
if entry.drafts[i].id == deleted_msg then
|
||||
table.remove(entry.drafts, i)
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue