fix some issues

This commit is contained in:
BuckarooBanzay 2023-03-28 19:28:49 +02:00 committed by Athozus
parent e8c7fde4c3
commit b1ccd494f7
No known key found for this signature in database
GPG key ID: B50895022E8484BF
3 changed files with 9 additions and 3 deletions

View file

@ -18,6 +18,12 @@ mtt.register("storage", function(callback)
assert(contacts[1].note == contact.note)
assert(contacts[1].name == contact.name)
-- read through api
local contacts2 = mail.get_contacts(playername)
assert(#contacts2 == 1)
assert(contacts2[1].note == contact.note)
assert(contacts2[1].name == contact.name)
-- update
mail.update_contact(playername, {
name = contact.name,