From 32d23fbf5f40d05803f49d1c2b773073f7a69638 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 13 Aug 2019 13:00:17 +0100 Subject: [PATCH] remove --- person.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/person.py b/person.py index fc4261785..a0bf25379 100644 --- a/person.py +++ b/person.py @@ -538,12 +538,12 @@ def suspendAccount(baseDir: str,nickname: str,salts: {}) -> None: def removeAccount(baseDir: str,nickname: str,domain: str) -> bool: """Removes an account """ - # Don't suspend the admin + # Don't remove the admin adminNickname=getConfigParam(baseDir,'admin') if nickname==adminNickname: return False - # Don't suspend moderators + # Don't remove moderators moderatorsFile=baseDir+'/accounts/moderators.txt' if os.path.isfile(moderatorsFile): with open(moderatorsFile, "r") as f: