Fix error

This commit is contained in:
AllinolCP 2021-11-14 11:50:43 +07:00 committed by GitHub
parent f53de2546c
commit da91f3f3ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ from houdini.handlers.play.moderation import moderator_ban, moderator_kick
@handlers.boot @handlers.boot
async def filter_load(server): 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') server.logger.info(f'Loaded {len(server.chat_filter_words)} filter words')