mirror of https://gitlab.com/bashrc2/epicyon
Minimum word length
parent
c7051f191f
commit
50ae2cec61
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue