mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-12 09:22:20 -04:00
fix some issues
This commit is contained in:
parent
e8c7fde4c3
commit
b1ccd494f7
3 changed files with 9 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue