10 lines
231 B
Lua
10 lines
231 B
Lua
|
|
-- mark mail as unread
|
|
function mail.handlers.mark_unread(playername, index)
|
|
local messages = mail.getMessages(playername)
|
|
if messages[index] then
|
|
messages[index].unread = true
|
|
end
|
|
mail.setMessages(playername, messages)
|
|
end
|