Explorar el Código

* Also rehash MONITOR list when done restarting.

This will ensure that bots update their monitor list on upgrades in particular.
Bryan Drewery hace 16 años
padre
commit
bf753f283f
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/mod/share.mod/share.c

+ 3 - 1
src/mod/share.mod/share.c

@@ -1442,8 +1442,10 @@ static void share_read_stream(int idx, bd::Stream& stream) {
   updatebot(-1, dcc[idx].nick, '+', 0, 0, 0, NULL);
   send_sysinfo();
 
-  if (restarting && !keepnick)
+  if (restarting && !keepnick) {
     keepnick = 1;
+    rehash_monitor_list();
+  }
 
   /* Prevents the server connect from dumping JOIN #chan */
   restarting = 0;