mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-04 05:37:00 -04:00
consistent function syntax
This commit is contained in:
parent
5642f139df
commit
3327be9bf4
3 changed files with 7 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
|||
|
||||
-- migrate from mail.db to player-file-based mailbox
|
||||
|
||||
mail.migrate = function()
|
||||
function mail.migrate()
|
||||
-- create directory, just in case
|
||||
minetest.mkdir(mail.maildir)
|
||||
minetest.mkdir(mail.contactsdir)
|
||||
|
@ -26,7 +26,7 @@ mail.migrate = function()
|
|||
end
|
||||
|
||||
|
||||
mail.migrate_contacts = function(playername)
|
||||
function mail.migrate_contacts(playername)
|
||||
local file = io.open(mail.getContactsFile(playername), 'r')
|
||||
if not file then
|
||||
-- file doesn't exist! This is a case for Migrate Man!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue