Minimum word length

This commit is contained in:
bashrc committed 2020-12-19 13:07:42 +00:00
1 parent c7051f191f
commit 50ae2cec61
1 file changed
+5 -2
+5 -2
View File
@@ -97,8 +97,11 @@ def isFiltered(baseDir: str, nickname: str, domain: str, content: str) -> bool:
if wordsFile:
wordsList = wordsFile.read().split('\n')
for word in wordsList:
if word in content:
return True
if not word:
continue
if len(word) > 1:
if word in content:
return True
if not nickname or not domain:
return False