diff options
author | Berke Viktor <berkeviktor@aol.com> | 2011-11-23 13:58:50 +0100 |
---|---|---|
committer | Berke Viktor <berkeviktor@aol.com> | 2011-11-23 13:58:50 +0100 |
commit | 08ee077396f971eec805c7db96c7c4b160adc436 (patch) | |
tree | 00ffb9af84940f780bd24ac3543ad0d9917f2987 /src/common/cfgfiles.c | |
parent | 9ab089e2e49dd300fae7a76596b444dc974b40e9 (diff) |
no manual saving, auto-save changes during /set
Diffstat (limited to 'src/common/cfgfiles.c')
-rw-r--r-- | src/common/cfgfiles.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c index 2aad854a..53e0865c 100644 --- a/src/common/cfgfiles.c +++ b/src/common/cfgfiles.c @@ -1084,7 +1084,13 @@ cmd_set (struct session *sess, char *tbuf, char *word[], char *word_eol[]) while (vars[i].name); if (!finds && !quiet) + { PrintText (sess, "No such variable.\n"); + } + else if (prefs.autosave && !save_config ()) + { + PrintText (sess, "Error saving changes to disk.\n"); + } return TRUE; } |