mirror of
https://github.com/mt-mods/mail.git
synced 2025-04-30 08:21:44 -04:00
Unused loop values in migrate.lua
This commit is contained in:
parent
75e547fc45
commit
0836429903
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ function mail.migrate_v2_to_v3()
|
|||
minetest.mkdir(mail.maildir) -- if necessary (eg. first login)
|
||||
minetest.log("info", "[mail] Migration from v2 to v3 database")
|
||||
minetest.after(0,function()
|
||||
for playername, value in minetest.get_auth_handler().iterate() do
|
||||
for playername, _ in minetest.get_auth_handler().iterate() do
|
||||
mail.migrate_contacts_v2_to_v3(playername)
|
||||
end
|
||||
end)
|
||||
|
@ -52,7 +52,7 @@ function mail.migrate_messages_v2_to_v3()
|
|||
local already_processed = {} -- store messages that are already process to avoid duplicates
|
||||
minetest.after(0,function()
|
||||
-- check in every inbox to fetch messages
|
||||
for playername, value in minetest.get_auth_handler().iterate() do
|
||||
for playername, _ in minetest.get_auth_handler().iterate() do
|
||||
local saneplayername = string.gsub(playername, "[.|/]", "")
|
||||
local player_inbox = mail.read_json_file(mail.maildir .. "/" .. saneplayername .. ".json")
|
||||
for _, msg in ipairs(player_inbox) do
|
||||
|
|
Loading…
Add table
Reference in a new issue