diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-11-17 22:19:47 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-11-17 22:19:47 +0100 |
commit | cd47614a1bd8b6fa2f25e27ea376ddd49ce79aeb (patch) | |
tree | 9520d1652c801315da5815a9f93ba4ccbc78acd1 | |
parent | 5e4aebd61a489adf1a5ca3721e34874b3e90c508 (diff) |
process_prompt: handle COM_FAILED differently
-rw-r--r-- | FICS/command.c | 4 |
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; |