mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-16 10:40:19 +00:00
no manual saving, auto-save changes during /set
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user