فهرست منبع

* Also retain active channels in shouldjoin() when restarting if somehow received full WHO results while restarting

Bryan Drewery 16 سال پیش
والد
کامیت
2ddf1d9a93
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/chanprog.c

+ 1 - 1
src/chanprog.c

@@ -833,7 +833,7 @@ chans_delbot(const char *bot, struct chanset_t *chan)
 bool bot_shouldjoin(struct userrec* u, struct flag_record* fr, struct chanset_t* chan, bool ignore_inactive)
 {
   // If restarting, keep this channel.
-  if (restarting && (reset_chans == 2) && channel_pending(chan)) return 1;
+  if (restarting && (reset_chans == 2) && (channel_active(chan) || channel_pending(chan))) return 1;
   /* If the bot is restarting (and hasn't finished getting the userfile for the first time) DO NOT JOIN channels - breaks +B/+backup */
   if (restarting || loading) return 0;