mirror of https://gitlab.com/bashrc2/epicyon
Newline character
parent
eda542cd34
commit
dae2f1f178
|
@ -68,7 +68,7 @@ def isFiltered(baseDir: str, nickname: str, domain: str, content: str) -> bool:
|
|||
|
||||
globalFiltersFilename = baseDir + '/accounts/filters.txt'
|
||||
if os.path.isfile(globalFiltersFilename):
|
||||
if content in open(globalFiltersFilename).read():
|
||||
if content + '\n' in open(globalFiltersFilename).read():
|
||||
return True
|
||||
|
||||
filtersFilename = baseDir + '/accounts/' + \
|
||||
|
|
Loading…
Reference in New Issue