Explorar o código

* Set server_online to now if upgrading from older bot

Bryan Drewery %!s(int64=16) %!d(string=hai) anos
pai
achega
5c22c373cb
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/misc.c

+ 1 - 0
src/misc.c

@@ -689,6 +689,7 @@ readsocks(const char *fname)
       add_server(nserv);
       curserv = 0;
       keepnick = 0; /* Wait to change nicks until relinking, fixes nick/jupenick switching issues during restart */
+      if (!server_online) server_online = now;
       rehash_server(dcc[servidx].host, nick);
       if (cached_005)
         replay_cache(servidx, NULL);