1
0
Эх сурвалжийг харах

* Also rehash MONITOR list when done restarting.

This will ensure that bots update their monitor list on upgrades in particular.
Bryan Drewery 16 жил өмнө
parent
commit
bf753f283f

+ 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;