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'
|
globalFiltersFilename = baseDir + '/accounts/filters.txt'
|
||||||
if os.path.isfile(globalFiltersFilename):
|
if os.path.isfile(globalFiltersFilename):
|
||||||
if content in open(globalFiltersFilename).read():
|
if content + '\n' in open(globalFiltersFilename).read():
|
||||||
return True
|
return True
|
||||||
|
|
||||||
filtersFilename = baseDir + '/accounts/' + \
|
filtersFilename = baseDir + '/accounts/' + \
|
||||||
|
|
Loading…
Reference in New Issue