Parcourir la source

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

svn: 841
Bryan Drewery il y a 22 ans
Parent
commit
9bf73b0567
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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 */