mirror of https://gitlab.com/bashrc2/epicyon
Variable name
parent
dae2f1f178
commit
083627457e
|
@ -71,10 +71,10 @@ def isFiltered(baseDir: str, nickname: str, domain: str, content: str) -> bool:
|
||||||
if content + '\n' in open(globalFiltersFilename).read():
|
if content + '\n' in open(globalFiltersFilename).read():
|
||||||
return True
|
return True
|
||||||
|
|
||||||
filtersFilename = baseDir + '/accounts/' + \
|
accountFiltersFilename = baseDir + '/accounts/' + \
|
||||||
nickname + '@' + domain + '/filters.txt'
|
nickname + '@' + domain + '/filters.txt'
|
||||||
if os.path.isfile(filtersFilename):
|
if os.path.isfile(accountFiltersFilename):
|
||||||
with open(filtersFilename, 'r') as fp:
|
with open(accountFiltersFilename, 'r') as fp:
|
||||||
for line in fp:
|
for line in fp:
|
||||||
filterStr = line.replace('\n', '').replace('\r', '')
|
filterStr = line.replace('\n', '').replace('\r', '')
|
||||||
if '+' not in filterStr:
|
if '+' not in filterStr:
|
||||||
|
|
Loading…
Reference in New Issue