From cd47614a1bd8b6fa2f25e27ea376ddd49ce79aeb Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 17 Nov 2024 22:19:47 +0100 Subject: process_prompt: handle COM_FAILED differently --- FICS/command.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/FICS/command.c b/FICS/command.c index 1161cfd..a913f4d 100644 --- a/FICS/command.c +++ b/FICS/command.c @@ -1029,6 +1029,10 @@ process_prompt(int p, char *command) retval = COM_OK; break; case COM_FAILED: + pprintf(p, "%s: Command has failed.\n", cmd); + retval = COM_OK; + pprintf(p, "%s", parray[p].prompt); + break; case COM_BADCOMMAND: pprintf(p, "%s: Command not found.\n", cmd); retval = COM_OK; -- cgit v1.2.3