diff options
author | Timo Sirainen <cras@irssi.org> | 2002-01-20 03:30:28 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-01-20 03:30:28 +0000 |
commit | bba5603903722221bd2f319835e924baf74b2b30 (patch) | |
tree | d6815ba352f6029f63486a3295eae1521fcf1c34 /src/core/settings.c | |
parent | d6abc84ab5e3f7653f657e9b5fb22230a0b8db4d (diff) | |
download | irssi-bba5603903722221bd2f319835e924baf74b2b30.zip |
Autosaving settings and autoflushing write buffer might have stopped from
working sometimes because of missing "return 1".
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2325 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/settings.c')
-rw-r--r-- | src/core/settings.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/settings.c b/src/core/settings.c index 7ded9ae2..b13163e0 100644 --- a/src/core/settings.c +++ b/src/core/settings.c @@ -605,13 +605,13 @@ int settings_save(const char *fname, int autosave) return !error; } -static void sig_autosave(void) +static int sig_autosave(void) { char *fname, *str; if (!settings_get_bool("settings_autosave") || config_last_modifycounter == mainconfig->modifycounter) - return; + return 1; if (!irssi_config_is_changed(NULL)) settings_save(NULL, TRUE); @@ -628,6 +628,8 @@ static void sig_autosave(void) settings_save(fname, TRUE); g_free(fname); } + + return 1; } void settings_init(void) |