mirror of
https://github.com/solero/houdini.git
synced 2024-11-08 12:18:20 +00:00
Merge pull request #55 from DanLCD/patch-1
Lower-case filter words automatically.
This commit is contained in:
commit
962a0eee21
@ -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 = await ChatFilterRuleCollection.get_collection()
|
||||
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')
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user