Avoid multiples occurences of the same messages due to player both in maillist and receivers

This commit is contained in:
Athozus 2023-03-02 21:19:52 +01:00
parent c9635d7190
commit 1412f0e3e0
No known key found for this signature in database
GPG key ID: B50895022E8484BF

View file

@ -39,6 +39,7 @@ function mail.getPlayerMessages(playername)
if receiver == playername then -- check if player is a receiver
if mail.getMessageStatus(receiver, msg.id) ~= "deleted" then -- do not return if the message was deleted from player
table.insert(playerMessages, msg)
break
end
end
end