From da91f3f3efe5d9e467e9406dbeecff431ab1b712 Mon Sep 17 00:00:00 2001 From: AllinolCP <56921534+AllinolCP@users.noreply.github.com> Date: Sun, 14 Nov 2021 11:50:43 +0700 Subject: [PATCH] Fix error --- houdini/handlers/play/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/houdini/handlers/play/message.py b/houdini/handlers/play/message.py index 8d1980b..0a9e48f 100644 --- a/houdini/handlers/play/message.py +++ b/houdini/handlers/play/message.py @@ -7,7 +7,7 @@ from houdini.handlers.play.moderation import moderator_ban, moderator_kick @handlers.boot async def filter_load(server): - server.chat_filter_words = {w.lower(): c for w, c in await ChatFilterRuleCollection.get_collection().items()} + server.chat_filter_words = {w.lower(): c for w, c in (await ChatFilterRuleCollection.get_collection()).items()} server.logger.info(f'Loaded {len(server.chat_filter_words)} filter words')