From d06e8dc6625d4677c926a8cfd09cc19f5c2af370 Mon Sep 17 00:00:00 2001 From: Illia Chub Date: Thu, 7 Oct 2021 19:24:08 +0300 Subject: [PATCH] Fixed minor logical issues --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 24208d9..8fda565 100755 --- a/main.py +++ b/main.py @@ -159,8 +159,8 @@ def createUser(): if line.startswith(" loginAccounts = {"): print("[DEBUG] Found mailuser configuration snippet match!") print("[INFO] Writing new user configuration snippet to memory...", sep="") - fileContent.insert(index-1, "\n") - fileContent.insert(index, mailUserTemplate) + fileContent.insert(index, "\n") + fileContent.insert(index+1, mailUserTemplate) print("done") break index += 1