Explorar o código

* Fixed hubs not correctly installing/checking crontab on startup. (#156)

svn: 2382
Bryan Drewery %!s(int64=21) %!d(string=hai) anos
pai
achega
12032a7fd1
Modificáronse 2 ficheiros con 5 adicións e 4 borrados
  1. 1 0
      doc/UPDATES
  2. 4 4
      src/main.c

+ 1 - 0
doc/UPDATES

@@ -18,6 +18,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Fixed a memleak in var_set_mem()
 * Now specifying what was removed from a list with set -listvar.
 * Fixed hub forgetting it's uplink.
+* Fixed hubs not correctly installing/checking crontab on startup. (#156)
 
 1.2.7
 * Forgot 'log_bad = 0;' to fix the '!' showing up for aliases.

+ 4 - 4
src/main.c

@@ -761,13 +761,13 @@ printf("out: %s\n", out);
 
   strcpy(botuser, origbotname);
 
-  if (!conf.bot->hub && conf.bot->localhub) {
+  if (!conf.bot->hub && conf.bot->localhub)
     sdprintf("I am localhub (%s)", conf.bot->nick);
+
 #ifndef CYGWIN_HACKS
-    if (conf.autocron)
-      check_crontab();
+  if (conf.autocron && (conf.bot->hub || conf.bot->localhub))
+    check_crontab();
 #endif /* !CYGWIN_HACKS */
-  }
 
 #ifdef __linux__
   if (conf.pscloak) {