From 083627457e005026640b9dd266fda16aeb008051 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 19 Dec 2020 10:51:17 +0000 Subject: [PATCH] Variable name --- filters.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/filters.py b/filters.py index 642f78c8c..164a8c94a 100644 --- a/filters.py +++ b/filters.py @@ -71,10 +71,10 @@ def isFiltered(baseDir: str, nickname: str, domain: str, content: str) -> bool: if content + '\n' in open(globalFiltersFilename).read(): return True - filtersFilename = baseDir + '/accounts/' + \ + accountFiltersFilename = baseDir + '/accounts/' + \ nickname + '@' + domain + '/filters.txt' - if os.path.isfile(filtersFilename): - with open(filtersFilename, 'r') as fp: + if os.path.isfile(accountFiltersFilename): + with open(accountFiltersFilename, 'r') as fp: for line in fp: filterStr = line.replace('\n', '').replace('\r', '') if '+' not in filterStr: