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():
|
||||
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:
|
||||
|
|
Loading…
Reference in New Issue