Fix traceback when using board/read with no message number

This commit is contained in:
Chiizujin 2024-05-08 12:21:06 +10:00
parent 08548d4acd
commit 38d7a0d6f4

View file

@ -112,7 +112,7 @@ class CmdEvMessageBoard(COMMAND_DEFAULT_CLASS):
unread = {
id: message
for id, message in messages.items()
if self.caller not in message["read_by"]
if not message.tags.has(self.caller.dbid, category="read_by")
}
if not unread:
self.caller.msg("You have read all the messages on this board.")