Преглед изворни кода

* 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 година
родитељ
комит
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
 void
 readsocks(const char *fname)
 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;
   FILE *f = NULL;