Przeglądaj źródła

* Port [3781] to 1.2.16 from trunk
* Fix leaf bots not updating behind other hubs (fixes #419)



svn: 3782

Bryan Drewery 18 lat temu
rodzic
commit
3d0b509a8d
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 0
      doc/UPDATES
  2. 1 2
      src/mod/update.mod/update.c

+ 1 - 0
doc/UPDATES

@@ -1,6 +1,7 @@
 1.2.16 - http://wraith.botpack.net/milestone/1.2.16
 * Add 'set altchars' so that alternative characters used for nicks can be changed. (fixes #418)
 * Fix channels added by cmd_slowjoin not having the user who added them associated with the channel.
+* Fix leaf bots not updating behind other hubs (fixes #419)
 
 1.2.15 - http://wraith.botpack.net/milestone/1.2.15
 * Fix a possible segfault when binaries compiled wrong

+ 1 - 2
src/mod/update.mod/update.c

@@ -172,7 +172,6 @@ static void got_nu(char *botnick, char *code, char *par)
 
 /* needupdate? curver */
    time_t newts = atol(newsplit(&par));
-   newsplit(&par); //ts
    int newrevision = atol(newsplit(&par));
 
    if (newrevision > revision) {
@@ -356,7 +355,7 @@ static void check_updates()
 
         dcc[i].status &= ~(STAT_GETTINGU | STAT_SENDINGU | STAT_OFFEREDU);
 
-        if (bot && (bot->revision < revision) && (isupdatehub())) {
+        if (bot && (bot->revision < revision)) {
           putlog(LOG_DEBUG, "@", "Bot: %s has build %d, offering them %d", dcc[i].nick, bot->revision, revision);
           dprintf(i, "sb u?\n");
           dcc[i].status |= STAT_OFFEREDU;