mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-22 07:04:54 -04:00
Fix duplication of id variable (luacheck)
This commit is contained in:
parent
030dcf801a
commit
4d9253545a
1 changed files with 0 additions and 4 deletions
|
@ -47,10 +47,6 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
end
|
end
|
||||||
if (fields.to == "" and fields.cc == "" and fields.bcc == "") or fields.body == "" then
|
if (fields.to == "" and fields.cc == "" and fields.bcc == "") or fields.body == "" then
|
||||||
-- if mail is invalid then store it as a draft
|
-- if mail is invalid then store it as a draft
|
||||||
local id = mail.new_uuid()
|
|
||||||
if msg_id[name] then
|
|
||||||
id = msg_id[name]
|
|
||||||
end
|
|
||||||
mail.save_draft({
|
mail.save_draft({
|
||||||
id = id,
|
id = id,
|
||||||
from = name,
|
from = name,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue