From dae2f1f178a08734b3790e7dafe99ef97d7a3748 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 19 Dec 2020 10:48:24 +0000 Subject: [PATCH] Newline character --- filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filters.py b/filters.py index 961ceddb3..642f78c8c 100644 --- a/filters.py +++ b/filters.py @@ -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/' + \