From 87fe3cae8aa28ceacc7d20afa1d535630d03bc02 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 24 Aug 2022 04:49:49 +0100 Subject: Replace GetUserCounter() with GetUsers().size(). This method is legacy from when there was a manual user counter and isn't much of a length saving over the unsugared version. --- src/modules/m_httpd_stats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_httpd_stats.cpp') diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp index c96566f8d..09d72cac5 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -220,7 +220,7 @@ namespace Stats { serializer.BeginBlock("channel") .Attribute("channelname", c->name) - .Attribute("usercount", c->GetUserCounter()) + .Attribute("usercount", c->GetUsers().size()) .Attribute("channelmodes",c->ChanModes(true)); if (!c->topic.empty()) -- cgit v1.3.1-10-gc9f91