Explorar o código

* Don't check last/promisc unless linked.


svn: 3795
Bryan Drewery %!s(int64=18) %!d(string=hai) anos
pai
achega
cccd66a420
Modificáronse 2 ficheiros con 11 adicións e 5 borrados
  1. 1 0
      doc/UPDATES
  2. 10 5
      src/main.c

+ 1 - 0
doc/UPDATES

@@ -6,6 +6,7 @@
 * SHELLHASH now supports SHA1 hashes.
 * Fix segfault from receiving truncated DNS replies.
 * Remove 'set mean-kicks' and change to 'chanset +meankicks' (default on, does not upgrade from old .set, must unset after upgrade if wanted)
+* Don't check last/promisc unless linked.
 
 1.2.15 - http://wraith.botpack.net/milestone/1.2.15
 * Fix a possible segfault when binaries compiled wrong

+ 10 - 5
src/main.c

@@ -445,16 +445,21 @@ void core_10secondly()
     check_trace(0);
 
   if (conf.bot->hub || conf.bot->localhub) {
-    check_promisc();
+    if (tands > 0) {
+      check_promisc();
+
+      if (curcheck == 2)
+        check_last();
+    }
 
-    if (curcheck == 2)
-      check_last();
-    if (curcheck == 3) {
 #ifdef NOT_USED
+    if (curcheck == 3) {
       check_processes();
+    }
 #endif
+
+    if (curcheck == 3)
       curcheck = 0;
-    }
   }
 #endif /* !CYGWIN_HACKS */
 }