diff options
author | Marius Halden <marius.h@lden.org> | 2016-08-09 08:57:15 +0200 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2016-08-09 08:57:15 +0200 |
commit | a7a72258f28f2584fbb607398a8bdeea26f352d5 (patch) | |
tree | 7bfe140c0cfab1a6d9bb0c5ee48850bb1c0ebb99 | |
parent | 3bc414e115a1d2ef834c44d44d7601c10f9c8f6c (diff) |
Don't autosave when saved manually
-rw-r--r-- | root_commands.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/root_commands.c b/root_commands.c index 79fdcd80..62fe1f39 100644 --- a/root_commands.c +++ b/root_commands.c @@ -295,6 +295,11 @@ static void cmd_save(irc_t *irc, char **cmd) irc_rootmsg(irc, "Please create an account first (see \x02help register\x02)"); } else if (storage_save(irc, NULL, TRUE) == STORAGE_OK) { irc_rootmsg(irc, "Configuration saved"); + + if (irc->save_source_id != -1) { + b_event_remove(irc->save_source_id); + irc->save_source_id = -1; + } } else { irc_rootmsg(irc, "Configuration could not be saved!"); } |