Răsfoiți Sursa

* Changed order of 'rehashed config data from binary' notice to appear before any bot/userfile changes.

svn: 2253
Bryan Drewery 21 ani în urmă
părinte
comite
7ac7000610
2 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 1 0
      doc/UPDATES
  2. 2 1
      src/binary.c

+ 1 - 0
doc/UPDATES

@@ -13,6 +13,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 
 1.2.5
 * Fixed spaces being stripped in .botcmd reply.
+* Changed order of 'rehashed config data from binary' notice to appear before any bot/userfile changes.
 
 1.2.4
 * Fixed cmd_botset not displaying botnick.

+ 2 - 1
src/binary.c

@@ -510,6 +510,8 @@ void conf_to_bin(conf_t *in, bool move, int die)
 
 void reload_bin_data() {
   if (bin_checksum(binname, GET_CONF)) {
+    putlog(LOG_MISC, "*", "Rehashed config data from binary.");
+
     conf_bot *oldbots = NULL;
     
     oldbots = conf_bots_dup(conf.bots);
@@ -539,7 +541,6 @@ void reload_bin_data() {
       free_conf_bots(conf.bots);
 
     free_conf_bots(oldbots);
-    putlog(LOG_MISC, "*", "Rehashed config data from binary.");
   }
 }