aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_httpd_stats.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2019-02-07 12:18:12 +0000
committerGravatar Sadie Powell2019-02-07 12:18:12 +0000
commit2cc168cfc030497464e0cf30c19260f62670c298 (patch)
treee983613e81bc034fc797d0015630ffafc200f87c /src/modules/m_httpd_stats.cpp
parentSnomaskManager: remove fakederef. (diff)
UserManager: remove fakederef.
Diffstat (limited to 'src/modules/m_httpd_stats.cpp')
-rw-r--r--src/modules/m_httpd_stats.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp
index c67c1ac1b..0f9714f5d 100644
--- a/src/modules/m_httpd_stats.cpp
+++ b/src/modules/m_httpd_stats.cpp
@@ -118,10 +118,10 @@ namespace Stats
std::ostream& General(std::ostream& data)
{
data << "<general>";
- data << "<usercount>" << ServerInstance->Users->GetUsers().size() << "</usercount>";
- data << "<localusercount>" << ServerInstance->Users->GetLocalUsers().size() << "</localusercount>";
+ data << "<usercount>" << ServerInstance->Users.GetUsers().size() << "</usercount>";
+ data << "<localusercount>" << ServerInstance->Users.GetLocalUsers().size() << "</localusercount>";
data << "<channelcount>" << ServerInstance->GetChans().size() << "</channelcount>";
- data << "<opercount>" << ServerInstance->Users->all_opers.size() << "</opercount>";
+ 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>";
@@ -204,7 +204,7 @@ namespace Stats
std::ostream& Users(std::ostream& data)
{
data << "<userlist>";
- const user_hash& users = ServerInstance->Users->GetUsers();
+ const user_hash& users = ServerInstance->Users.GetUsers();
for (user_hash::const_iterator i = users.begin(); i != users.end(); ++i)
{
User* u = i->second;