Don't write to nickserv file either if autosave=false.
authorJelmer Vernooij <jelmer@samba.org>
Sun, 29 Jun 2008 14:11:57 +0000 (16:11 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 29 Jun 2008 14:11:57 +0000 (16:11 +0200)
NEWS
src/main.c

diff --git a/NEWS b/NEWS
index 584488cd490bf10a1cadbbefb4fbe1e30912a0da..41f44c49d3815ea548913b62b18bf87eef880953 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,8 @@ Ctrlproxy 3.0.8 UNRELEASED
    
     * Support 901 response codes.
 
+       * Don't write to nickserv file either if autosave=false.
+
 
 Ctrlproxy 3.0.7 2008-06-14
 
index 363303bdbc0b8a67edf3aaba8708e7f1a0b962f4..2d73c501633cf57ee4014f5851fc4cfe3f353ee5 100644 (file)
@@ -123,9 +123,10 @@ static void clean_exit()
        }
 
        config_save_notify(my_global, path);
-       if (my_global->config->autosave)
+       if (my_global->config->autosave) {
                save_configuration(my_global->config, path);
-       nickserv_save(my_global, path);
+               nickserv_save(my_global, path);
+       }
        stop_unix_socket(my_global);
        stop_admin_socket(my_global);
        fini_listeners(my_global);