no manual saving, auto-save changes during /set

This commit is contained in:
Berke Viktor 2011-11-23 13:58:50 +01:00
parent 9ab089e2e4
commit 08ee077396
2 changed files with 7 additions and 1 deletions

View File

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

View File

@ -3647,7 +3647,7 @@ const struct commands xc_cmds[] = {
#endif
{"RECV", cmd_recv, 1, 0, 1, N_("RECV <text>, 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 <text>, sends the text to the object in the current window")},
{"SEND", cmd_send, 0, 0, 1, N_("SEND <nick> [<file>]")},