mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-21 22:54:57 -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
|
||||
if (fields.to == "" and fields.cc == "" and fields.bcc == "") or fields.body == "" then
|
||||
-- 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({
|
||||
id = id,
|
||||
from = name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue