1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-12-23 08:08:54 -05:00

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

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