Fix mail notification on login

This commit is contained in:
Athozus 2023-04-01 19:03:29 +02:00
parent 3e3ea414ba
commit 2d7e1993c7
No known key found for this signature in database
GPG key ID: B50895022E8484BF

View file

@ -6,7 +6,7 @@ minetest.register_on_joinplayer(function(player)
local unreadcount = 0
for _, message in pairs(messages) do
if message.unread then
if not message.read then
unreadcount = unreadcount + 1
end
end