aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-11-17 22:19:47 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-11-17 22:19:47 +0100
commitcd47614a1bd8b6fa2f25e27ea376ddd49ce79aeb (patch)
tree9520d1652c801315da5815a9f93ba4ccbc78acd1
parent5e4aebd61a489adf1a5ca3721e34874b3e90c508 (diff)
process_prompt: handle COM_FAILED differently
-rw-r--r--FICS/command.c4
1 files changed, 4 insertions, 0 deletions
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;