1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 23:43:13 +02:00

Use more appropriate types for MaxUserCount and OperCount.

This commit is contained in:
Sadie Powell
2025-05-10 00:59:20 +01:00
parent ce0982cc4a
commit 49f93b7670
5 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -433,7 +433,7 @@ void Stats::Run(MessageSource &source, const std::vector<Anope::string> &params,
{
long uptime = static_cast<long>(Anope::CurTime - Anope::StartTime);
IRCD->SendNumeric(RPL_STATSUPTIME, source.GetSource(), Anope::printf("Services up %ld day%s, %02ld:%02ld:%02ld", uptime / 86400, uptime / 86400 == 1 ? "" : "s", (uptime / 3600) % 24, (uptime / 60) % 60, uptime % 60));
IRCD->SendNumeric(RPL_STATSCONN, source.GetSource(), Anope::printf("Current users: %zu (%d ops); maximum %u", UserListByNick.size(), OperCount, MaxUserCount));
IRCD->SendNumeric(RPL_STATSCONN, source.GetSource(), Anope::printf("Current users: %zu (%zu ops); maximum %zu", UserListByNick.size(), OperCount, MaxUserCount));
IRCD->SendNumeric(RPL_STATSLINKINFO, source.GetSource(), params[0][0], "End of /STATS report.");
break;
} /* case 'u' */