mirror of https://gitlab.com/bashrc2/epicyon
Minimum word length
parent
c7051f191f
commit
50ae2cec61
|
@ -97,8 +97,11 @@ def isFiltered(baseDir: str, nickname: str, domain: str, content: str) -> bool:
|
||||||
if wordsFile:
|
if wordsFile:
|
||||||
wordsList = wordsFile.read().split('\n')
|
wordsList = wordsFile.read().split('\n')
|
||||||
for word in wordsList:
|
for word in wordsList:
|
||||||
if word in content:
|
if not word:
|
||||||
return True
|
continue
|
||||||
|
if len(word) > 1:
|
||||||
|
if word in content:
|
||||||
|
return True
|
||||||
|
|
||||||
if not nickname or not domain:
|
if not nickname or not domain:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue