mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-06 06:30:34 -04:00
Fix luacheck (2)
This commit is contained in:
parent
ac4fc42ef3
commit
bf7986e5f7
1 changed files with 3 additions and 3 deletions
6
api.lua
6
api.lua
|
@ -63,13 +63,13 @@ function mail.send(m)
|
||||||
m.from, m.to, extra_log, m.subject, m.body
|
m.from, m.to, extra_log, m.subject, m.body
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
||||||
local id = mail.new_uuid()
|
local id = mail.new_uuid()
|
||||||
if m.id then
|
if m.id then
|
||||||
mail.delete_mail(m.from, m.id)
|
mail.delete_mail(m.from, m.id)
|
||||||
id = m.id
|
id = m.id
|
||||||
end
|
end
|
||||||
|
|
||||||
-- form the actual mail
|
-- form the actual mail
|
||||||
local msg = {
|
local msg = {
|
||||||
id = id,
|
id = id,
|
||||||
|
@ -135,7 +135,7 @@ function mail.save_draft(m)
|
||||||
mail.delete_mail(m.from, m.id)
|
mail.delete_mail(m.from, m.id)
|
||||||
id = m.id
|
id = m.id
|
||||||
end
|
end
|
||||||
|
|
||||||
-- add (again ie. update) in sender drafts
|
-- add (again ie. update) in sender drafts
|
||||||
local entry = mail.get_storage_entry(m.from)
|
local entry = mail.get_storage_entry(m.from)
|
||||||
table.insert(entry.drafts, 1, {
|
table.insert(entry.drafts, 1, {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue