|
@@ -647,6 +647,8 @@ readsocks(const char *fname)
|
|
|
dprintf(DP_STDOUT, STR("Added fd: %d\n"), sock_read(stream));
|
|
dprintf(DP_STDOUT, STR("Added fd: %d\n"), sock_read(stream));
|
|
|
else if (type == STR("+online_since"))
|
|
else if (type == STR("+online_since"))
|
|
|
online_since = strtol(str.c_str(), NULL, 10);
|
|
online_since = strtol(str.c_str(), NULL, 10);
|
|
|
|
|
+ else if (type == STR("+server_online"))
|
|
|
|
|
+ server_online = strtol(str.c_str(), NULL, 10);
|
|
|
else if (type == STR("+server_floodless"))
|
|
else if (type == STR("+server_floodless"))
|
|
|
floodless = 1;
|
|
floodless = 1;
|
|
|
else if (type == STR("+buildts"))
|
|
else if (type == STR("+buildts"))
|
|
@@ -687,6 +689,7 @@ readsocks(const char *fname)
|
|
|
add_server(nserv);
|
|
add_server(nserv);
|
|
|
curserv = 0;
|
|
curserv = 0;
|
|
|
keepnick = 0; /* Wait to change nicks until relinking, fixes nick/jupenick switching issues during restart */
|
|
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);
|
|
rehash_server(dcc[servidx].host, nick);
|
|
|
if (cached_005)
|
|
if (cached_005)
|
|
|
replay_cache(servidx, NULL);
|
|
replay_cache(servidx, NULL);
|
|
@@ -749,6 +752,7 @@ restart(int idx)
|
|
|
if (server_online) {
|
|
if (server_online) {
|
|
|
if (botname[0])
|
|
if (botname[0])
|
|
|
stream << buf.printf(STR("+botname %s\n"), botname);
|
|
stream << buf.printf(STR("+botname %s\n"), botname);
|
|
|
|
|
+ stream << buf.printf(STR("+server_online %li\n"), server_online);
|
|
|
}
|
|
}
|
|
|
stream << buf.printf(STR("+online_since %li\n"), online_since);
|
|
stream << buf.printf(STR("+online_since %li\n"), online_since);
|
|
|
if (floodless)
|
|
if (floodless)
|