فهرست منبع

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

svn: 2382
Bryan Drewery 21 سال پیش
والد
کامیت
12032a7fd1
2فایلهای تغییر یافته به همراه5 افزوده شده و 4 حذف شده
  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()
 * Fixed a memleak in var_set_mem()
 * Now specifying what was removed from a list with set -listvar.
 * Now specifying what was removed from a list with set -listvar.
 * Fixed hub forgetting it's uplink.
 * Fixed hub forgetting it's uplink.
+* Fixed hubs not correctly installing/checking crontab on startup. (#156)
 
 
 1.2.7
 1.2.7
 * Forgot 'log_bad = 0;' to fix the '!' showing up for aliases.
 * 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);
   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);
     sdprintf("I am localhub (%s)", conf.bot->nick);
+
 #ifndef CYGWIN_HACKS
 #ifndef CYGWIN_HACKS
-    if (conf.autocron)
-      check_crontab();
+  if (conf.autocron && (conf.bot->hub || conf.bot->localhub))
+    check_crontab();
 #endif /* !CYGWIN_HACKS */
 #endif /* !CYGWIN_HACKS */
-  }
 
 
 #ifdef __linux__
 #ifdef __linux__
   if (conf.pscloak) {
   if (conf.pscloak) {