aboutsummaryrefslogtreecommitdiffstats
path: root/root_commands.c
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2016-08-02 13:29:42 +0200
committerMarius Halden <marius.h@lden.org>2016-08-02 13:29:42 +0200
commit53aa23d5867ef008cfcf82dccf81146630be27f8 (patch)
tree1ee116a7c76ed2bd7f8b7b5f0573dd0bbb9660ad /root_commands.c
parenta18f767c1f71f9884ff7f23752db025748713d9e (diff)
Add autosave after 30 sec
Diffstat (limited to 'root_commands.c')
-rw-r--r--root_commands.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/root_commands.c b/root_commands.c
index bc11746f..79fdcd80 100644
--- a/root_commands.c
+++ b/root_commands.c
@@ -368,6 +368,10 @@ static int cmd_set_real(irc_t *irc, char **cmd, set_t **head, cmd_set_checkflags
} else {
cmd_showset(irc, head, set_name);
}
+
+ if (st /* XXX: && !(s->flags & SET_NOSAVE)*/) {
+ storage_setup_auto_save(irc);
+ }
} else if (set_name) {
cmd_showset(irc, head, set_name);
} else {