From 67ef819ebced1e46874b60abaef5876444585684 Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Wed, 23 Nov 2011 11:51:19 +0100 Subject: [PATCH] report back when saving preferences via command --- src/common/outbound.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/common/outbound.c b/src/common/outbound.c index 3a4d379c..8ae1bb55 100644 --- a/src/common/outbound.c +++ b/src/common/outbound.c @@ -2889,7 +2889,14 @@ cmd_recv (struct session *sess, char *tbuf, char *word[], char *word_eol[]) static int cmd_saveconf (struct session *sess, char *tbuf, char *word[], char *word_eol[]) { - save_config (); + if (save_config ()) + { + PrintText (sess, "Preferences have been saved successfully.\n"); + } + else + { + PrintText (sess, "Error saving preferences.\n"); + } return TRUE; }