Răsfoiți Sursa

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

svn: 841
Bryan Drewery 22 ani în urmă
părinte
comite
9bf73b0567
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  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 */