Minimum word length

main
Bob Mottram 2020-12-19 13:07:42 +00:00
parent c7051f191f
commit 50ae2cec61
1 changed files with 5 additions and 2 deletions

View File

@ -97,6 +97,9 @@ def isFiltered(baseDir: str, nickname: str, domain: str, content: str) -> bool:
if wordsFile:
wordsList = wordsFile.read().split('\n')
for word in wordsList:
if not word:
continue
if len(word) > 1:
if word in content:
return True