Variable name

main
Bob Mottram 2020-12-19 10:51:17 +00:00
parent dae2f1f178
commit 083627457e
1 changed files with 3 additions and 3 deletions

View File

@ -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: