Procházet zdrojové kódy

* Only bother installing/checking crontab if it's set in the config.

svn: 841
Bryan Drewery před 22 roky
rodič
revize
9bf73b0567
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      src/main.c

+ 2 - 1
src/main.c

@@ -719,7 +719,8 @@ int main(int argc, char **argv)
   if (localhub) {
     sdprintf(STR("I am localhub (%s)"), conf.bot->nick);
 #endif /* LEAF */
-    check_crontab();
+    if (conffile.autocron)
+      check_crontab();
 #ifdef LEAF
   }
 #endif /* LEAF */