Просмотр исходного кода

* Ported [2865] to 1.2.10
* Fixed hub flaw in cmd_uptime.


svn: 2866

Bryan Drewery 20 лет назад
Родитель
Сommit
b958160e8d
2 измененных файлов с 3 добавлено и 2 удалено
  1. 2 1
      doc/UPDATES
  2. 1 1
      src/misc.c

+ 2 - 1
doc/UPDATES

@@ -31,7 +31,8 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Fixed a timer bug which could cause prolonged looping.
 * Fixed a timer bug which could cause prolonged looping.
 * Removed some stale (backup) dns servers. (fixes #263)
 * Removed some stale (backup) dns servers. (fixes #263)
 * Bot handles are now restricted to 9 characters. (fixes #253)
 * Bot handles are now restricted to 9 characters. (fixes #253)
-* Fixed hubs not keeping their uptime when restarted.
+* Fixed hubs not preserving uptime when restarted.
+* Fixed hub flaw in cmd_uptime.
 
 
 1.2.9 - http://tracker.shatow.net/milestone/1.2.9
 1.2.9 - http://tracker.shatow.net/milestone/1.2.9
 * Fixed cmd_[un]stick not properly using numbers for channel masks. (#160)
 * Fixed cmd_[un]stick not properly using numbers for channel masks. (#160)

+ 1 - 1
src/misc.c

@@ -665,9 +665,9 @@ restart(int idx)
   if (server_online) {
   if (server_online) {
     if (botname[0])
     if (botname[0])
       fprintf(socks->f, "+botname %s\n", botname);
       fprintf(socks->f, "+botname %s\n", botname);
-    fprintf(socks->f, "+buildts %li\n", buildts);
   }
   }
   fprintf(socks->f, "+online_since %li\n", online_since);
   fprintf(socks->f, "+online_since %li\n", online_since);
+  fprintf(socks->f, "+buildts %li\n", buildts);
   fflush(socks->f);
   fflush(socks->f);
   socks->my_close();
   socks->my_close();