X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_httpd_stats.cpp;h=8b2ce75f5b628f3251433240e707aa4e3cf2ae8d;hb=fca345d6b5bc453d3e0b914a1c7a1865991ea220;hp=544cc147540406f6d61c71ae94d653a4b0602914;hpb=09afa5085614e0224a296abd082fce205003c3fe;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp index 544cc1475..8b2ce75f5 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -28,8 +28,6 @@ using namespace std; /* $ModDesc: Provides statistics over HTTP via m_httpd.so */ -extern user_hash clientlist; -extern chan_hash chanlist; extern std::vector all_opers; extern InspIRCd* ServerInstance; @@ -108,15 +106,15 @@ class ModuleHttpStats : public Module data << ""; data << ""; - data << "InspIRCd server statisitics for " << Srv->GetServerName() << " (" << Srv->GetServerDescription() << ")"; + data << "InspIRCd server statisitics for " << Srv->GetServerName() << " (" << ServerInstance->Config->ServerDesc << ")"; data << ""; - data << "

InspIRCd server statisitics for " << Srv->GetServerName() << " (" << Srv->GetServerDescription() << ")

"; + data << "

InspIRCd server statisitics for " << Srv->GetServerName() << " (" << ServerInstance->Config->ServerDesc << ")

"; data << "
"; data << "

Totals

"; data << ""; - data << ""; - data << ""; + data << ""; + data << ""; data << ""; data << ""; data << "
Users" << clientlist.size() << "
Channels" << chanlist.size() << "
Users" << ServerInstance->clientlist.size() << "
Channels" << ServerInstance->chanlist.size() << "
Opers" << all_opers.size() << "
Sockets" << (ServerInstance->SE->GetMaxFds() - ServerInstance->SE->GetRemainingFds()) << " (Max: " << ServerInstance->SE->GetMaxFds() << " via socket engine '" << ServerInstance->SE->GetName() << "')
"; @@ -147,7 +145,7 @@ class ModuleHttpStats : public Module int n = 0; for (SortedIter a = so->begin(); ((a != so->end()) && (n < 25)); a++, n++) { - chanrec* c = Srv->FindChannel(a->second.c_str()); + chanrec* c = ServerInstance->FindChan(a->second.c_str()); if (c) { data << "" << a->first << "" << a->second << "";