Răsfoiți Sursa

* 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 ani în urmă
părinte
comite
b1da194c79
1 a modificat fișierele cu 5 adăugiri și 1 ștergeri
  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;