summaryrefslogtreecommitdiff
path: root/modules/commands/os_stats.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-02-14 18:11:34 +0000
committerSadie Powell <sadie@witchery.services>2025-02-14 18:15:51 +0000
commitfbb8442252020fb9bb0091f4893709e3f3d962d6 (patch)
treeebb5aad68fda6c70809314711b060e5477818ba1 /modules/commands/os_stats.cpp
parent8110fddfe5b404e0bb58ddc4738056243d09f085 (diff)
Reset the stats properly.
Closes #465.
Diffstat (limited to 'modules/commands/os_stats.cpp')
-rw-r--r--modules/commands/os_stats.cpp2
1 files changed, 2 insertions, 0 deletions
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;
}