mirror of
https://github.com/mt-mods/mail.git
synced 2025-04-30 08:21:44 -04:00
Avoid multiples occurences of the same messages due to player both in maillist and receivers
This commit is contained in:
parent
c9635d7190
commit
1412f0e3e0
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue