handler_mark_unread.lua 231 B

12345678910
  1. -- mark mail as unread
  2. function mail.handlers.mark_unread(playername, index)
  3. local messages = mail.getMessages(playername)
  4. if messages[index] then
  5. messages[index].unread = true
  6. end
  7. mail.setMessages(playername, messages)
  8. end