mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-17 11:10:18 +00:00
report back when saving preferences via command
This commit is contained in:
@@ -2889,7 +2889,14 @@ cmd_recv (struct session *sess, char *tbuf, char *word[], char *word_eol[])
|
|||||||
static int
|
static int
|
||||||
cmd_saveconf (struct session *sess, char *tbuf, char *word[], char *word_eol[])
|
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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user