Ver código fonte

* Don't autocron when in debug mode

Bryan Drewery 15 anos atrás
pai
commit
8503676b36
1 arquivos alterados com 1 adições e 1 exclusões
  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)
   if (!conf.bot->hub && conf.bot->localhub)
     sdprintf(STR("I am localhub (%s)"), conf.bot->nick);
     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();
     check_crontab();
 
 
   /* Move into background? */
   /* Move into background? */