From fbb8442252020fb9bb0091f4893709e3f3d962d6 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 14 Feb 2025 18:11:34 +0000 Subject: [PATCH] Reset the stats properly. Closes #465. --- modules/commands/os_stats.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/commands/os_stats.cpp b/modules/commands/os_stats.cpp index a8fabc9da..9cbe57503 100644 --- a/modules/commands/os_stats.cpp +++ b/modules/commands/os_stats.cpp @@ -128,6 +128,8 @@ class CommandOSStats : public Command void DoStatsReset(CommandSource &source) { MaxUserCount = UserListByNick.size(); + MaxUserTime = Anope::CurTime; + Stats::me->QueueUpdate(); source.Reply(_("Statistics reset.")); return; }