migration fixes
This commit is contained in:
parent
106e94eee7
commit
39f47437b6
2
gui.lua
2
gui.lua
@ -322,7 +322,7 @@ function mail.replyall(name, message)
|
|||||||
mail.ensure_new_format(message)
|
mail.ensure_new_format(message)
|
||||||
local replyfooter = "Type your reply here.\n\n--Original message follows--\n" ..message.body
|
local replyfooter = "Type your reply here.\n\n--Original message follows--\n" ..message.body
|
||||||
-- new recipients are the sender plus the original recipients, minus ourselves
|
-- new recipients are the sender plus the original recipients, minus ourselves
|
||||||
local recipients = message.to
|
local recipients = message.to or ""
|
||||||
if message.sender ~= nil then
|
if message.sender ~= nil then
|
||||||
recipients = message.sender .. ", " .. recipients
|
recipients = message.sender .. ", " .. recipients
|
||||||
end
|
end
|
||||||
|
@ -29,8 +29,7 @@ end
|
|||||||
mail.migrate_contacts = function(playername)
|
mail.migrate_contacts = function(playername)
|
||||||
local file = io.open(mail.getContactsFile(playername), 'r')
|
local file = io.open(mail.getContactsFile(playername), 'r')
|
||||||
if not file then
|
if not file then
|
||||||
file:close() -- file doesn't exist! This is a case for Migrate Man!
|
-- file doesn't exist! This is a case for Migrate Man!
|
||||||
|
|
||||||
local messages = mail.getMessages(playername)
|
local messages = mail.getMessages(playername)
|
||||||
local contacts = {}
|
local contacts = {}
|
||||||
|
|
||||||
|
@ -36,6 +36,7 @@ function mail.concat_player_list(order)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function mail.player_in_list(name, list)
|
function mail.player_in_list(name, list)
|
||||||
|
list = list or {}
|
||||||
if type(list) == "string" then
|
if type(list) == "string" then
|
||||||
list = mail.parse_player_list(list)
|
list = mail.parse_player_list(list)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user