Newline character

main
Bob Mottram 2020-12-19 10:48:24 +00:00
parent eda542cd34
commit dae2f1f178
1 changed files with 1 additions and 1 deletions

View File

@ -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/' + \