report back when saving preferences via command
This commit is contained in:
parent
8be4a55a57
commit
67ef819ebc
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue