From da30508d67157d543dc0a652034e387ad4670b49 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 5 Feb 2020 17:41:24 +0000 Subject: [PATCH] Tidying --- blocking.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blocking.py b/blocking.py index ed923118e..eda5e872b 100644 --- a/blocking.py +++ b/blocking.py @@ -134,7 +134,7 @@ def isBlocked(baseDir: str,nickname: str,domain: str, \ if os.path.isfile(globalBlockingFilename): if '*@'+blockDomain in open(globalBlockingFilename).read(): return True - if blockNickname and blockDomain: + if blockNickname: blockHandle=blockNickname+'@'+blockDomain if blockHandle in open(globalBlockingFilename).read(): return True @@ -148,7 +148,7 @@ def isBlocked(baseDir: str,nickname: str,domain: str, \ if os.path.isfile(blockingFilename): if '*@'+blockDomain in open(blockingFilename).read(): return True - if blockNickname and blockDomain: + if blockNickname: blockHandle=blockNickname+'@'+blockDomain if blockHandle in open(blockingFilename).read(): return True