aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_httpd_stats.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-06-21 04:25:45 +0100
committerGravatar Sadie Powell2021-05-08 15:31:50 +0100
commit0c750c060839f9018ca129bd7456184792ea0dc0 (patch)
tree43aa8d0a593afa292e2922d2481b2349e0dc8dfd /src/modules/m_httpd_stats.cpp
parentMerge branch 'insp3' into master. (diff)
Move channel logic from InspIRCd to the new ChannelManager class.
Diffstat (limited to 'src/modules/m_httpd_stats.cpp')
-rw-r--r--src/modules/m_httpd_stats.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp
index df127fe8b..b568f8d64 100644
--- a/src/modules/m_httpd_stats.cpp
+++ b/src/modules/m_httpd_stats.cpp
@@ -131,7 +131,7 @@ namespace Stats
data << "<general>";
data << "<usercount>" << ServerInstance->Users.GetUsers().size() << "</usercount>";
data << "<localusercount>" << ServerInstance->Users.GetLocalUsers().size() << "</localusercount>";
- data << "<channelcount>" << ServerInstance->GetChans().size() << "</channelcount>";
+ data << "<channelcount>" << ServerInstance->Channels.GetChans().size() << "</channelcount>";
data << "<opercount>" << ServerInstance->Users.all_opers.size() << "</opercount>";
data << "<socketcount>" << (SocketEngine::GetUsedFds()) << "</socketcount><socketmax>" << SocketEngine::GetMaxFds() << "</socketmax>";
data << "<uptime><boot_time_t>" << ServerInstance->startup_time << "</boot_time_t></uptime>";
@@ -177,7 +177,7 @@ namespace Stats
{
data << "<channellist>";
- for (const auto& [_, c] : ServerInstance->GetChans())
+ for (const auto& [_, c] : ServerInstance->Channels.GetChans())
{
data << "<channel>";
data << "<usercount>" << c->GetUsers().size() << "</usercount><channelname>" << Sanitize(c->name) << "</channelname>";