瀏覽代碼

* 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 */