mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-01 10:24:46 +00:00
Minimum word length
This commit is contained in:
1 parent
c7051f191f
commit
50ae2cec61
1 file changed
+5
-2
+5
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user