Преглед изворни кода

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

svn: 841
Bryan Drewery пре 22 година
родитељ
комит
9bf73b0567
1 измењених фајлова са 2 додато и 1 уклоњено
  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 */