From 4d11fc9f539ebdcf229d5d610252d74604e02980 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 5 Sep 2023 18:09:38 -0400 Subject: [PATCH] textclient: don't prompt to change internet email addresses when deleting a user The 'edit user' and 'delete user' workflows run through the same function since the process of deleting a user simply edits them and changes their access level to 0. Add a check for cmd==25 (edit user) before asking the user if they want to change the email addresses. --- textclient/routines.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/textclient/routines.c b/textclient/routines.c index 3a04cbe7c..d74c80e6c 100644 --- a/textclient/routines.c +++ b/textclient/routines.c @@ -237,8 +237,10 @@ void edituser(CtdlIPC * ipc, int cmd) { } free(user); - if (boolprompt("Edit this user's Internet email addresses", 0)) { - edit_user_internet_email_addresses(ipc, who); + if (cmd == 25) { // user edit + if (boolprompt("Edit this user's Internet email addresses", 0)) { + edit_user_internet_email_addresses(ipc, who); + } } } -- 2.30.2