Ver Fonte

* Only do the special restart checking if using the new method

Bryan Drewery há 16 anos atrás
pai
commit
a8c12f7e51
1 ficheiros alterados com 1 adições e 1 exclusões
  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 && channel_pending(chan)) return 1;
+  if (restarting && (reset_chans == 2) && 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;