Fix strings (translations and checks)

This commit is contained in:
Athozus 2023-05-05 13:13:09 +02:00
parent 720029a73e
commit 95ab299016
No known key found for this signature in database
GPG key ID: B50895022E8484BF
9 changed files with 180 additions and 114 deletions

View file

@ -178,6 +178,17 @@ function mail.get_contacts(playername)
return entry.contacts
end
-- get a contact
function mail.get_contact(playername, contactname)
local entry = mail.get_storage_entry(playername)
for _, existing_contact in ipairs(entry.contacts) do
if existing_contact.name == contactname then
return existing_contact
end
end
return false
end
-- returns the maillists of a player
function mail.get_maillists(playername)
local entry = mail.get_storage_entry(playername)