diff options
| author | 2022-08-24 04:49:49 +0100 | |
|---|---|---|
| committer | 2022-08-24 04:52:45 +0100 | |
| commit | 87fe3cae8aa28ceacc7d20afa1d535630d03bc02 (patch) | |
| tree | d98fee098ff3f309b34206be37626d5cdb866305 /src/modules/m_httpd_stats.cpp | |
| parent | Kill some unnecessary misspell-fixer ignore entries. (diff) | |
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.
Diffstat (limited to 'src/modules/m_httpd_stats.cpp')
| -rw-r--r-- | src/modules/m_httpd_stats.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()) |
