Просмотр исходного кода

* Port [3497] to 1.2.14
* Fix a condition which made the hub think channels were inactive (devel version only)



svn: 3498

Bryan Drewery 19 лет назад
Родитель
Сommit
b1da194c79
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      src/misc.c

+ 5 - 1
src/misc.c

@@ -568,7 +568,11 @@ void kill_bot(char *s1, char *s2)
 void
 readsocks(const char *fname)
 {
-  restarting = 1;
+  /* Don't bother setting this if a hub
+     ... it is only intended to prevent parting channels (in bot_shouldjoin())
+   */
+  if (!conf.bot->hub)
+    restarting = 1;
 
   FILE *f = NULL;