Skip to content
Snippets Groups Projects
Commit e12c3504 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Revert "Log an error if getstats() returns a failure"

This reverts commit 8266da9c.

We're already passing a sock_init callback (ls_cb) which is supposed to set
the socket options (call set_socket_options), so this change shouldn't be
necessary and reportedly caused more issues binding ircd sockets when running
ircd.js via jsexec (though I didn't see this myself).
parent 8266da9c
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4568 passed
...@@ -599,10 +599,7 @@ uint sbbs_t::logonstats() ...@@ -599,10 +599,7 @@ uint sbbs_t::logonstats()
struct tm tm, update_tm; struct tm tm, update_tm;
sys_status&=~SS_DAILY; sys_status&=~SS_DAILY;
if(!getstats(&cfg, 0, &stats)) { getstats(&cfg, 0, &stats);
errormsg(WHERE, ERR_READ, "system stats");
return 0;
}
now=time(NULL); now=time(NULL);
if(stats.date > now+(24L*60L*60L)) /* More than a day in the future? */ if(stats.date > now+(24L*60L*60L)) /* More than a day in the future? */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment