From 08ee077396f971eec805c7db96c7c4b160adc436 Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Wed, 23 Nov 2011 13:58:50 +0100 Subject: [PATCH] no manual saving, auto-save changes during /set --- src/common/cfgfiles.c | 6 ++++++ src/common/outbound.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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; } diff --git a/src/common/outbound.c b/src/common/outbound.c index 32302efe..917562b9 100644 --- a/src/common/outbound.c +++ b/src/common/outbound.c @@ -3647,7 +3647,7 @@ const struct commands xc_cmds[] = { #endif {"RECV", cmd_recv, 1, 0, 1, N_("RECV , send raw data to xchat, as if it was received from the irc server")}, - {"SAVECONF", cmd_saveconf, 0, 0, 1, N_("SAVECONF, saves the current settings to disk")}, + /*{"SAVECONF", cmd_saveconf, 0, 0, 1, N_("SAVECONF, saves the current settings to disk")},*/ {"SAY", cmd_say, 0, 0, 1, N_("SAY , sends the text to the object in the current window")}, {"SEND", cmd_send, 0, 0, 1, N_("SEND []")},