report back when saving preferences via command

This commit is contained in:
Berke Viktor 2011-11-23 11:51:19 +01:00
parent 8be4a55a57
commit 67ef819ebc
1 changed files with 8 additions and 1 deletions

View File

@ -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;
}