Browse Source

* Don't autocron when in debug mode

Bryan Drewery 15 năm trước cách đây
mục cha
commit
8503676b36
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/main.c

+ 1 - 1
src/main.c

@@ -822,7 +822,7 @@ int main(int argc, char **argv)
   if (!conf.bot->hub && conf.bot->localhub)
     sdprintf(STR("I am localhub (%s)"), conf.bot->nick);
 
-  if (conf.autocron && (conf.bot->hub || conf.bot->localhub))
+  if (!sdebug && (conf.autocron && (conf.bot->hub || conf.bot->localhub)))
     check_crontab();
 
   /* Move into background? */