summaryrefslogtreecommitdiff
path: root/src/modules/m_httpd_stats.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-04 23:07:27 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-04 23:07:27 +0000
commit99e5c4d39f06d88d58f5ea21fc2db418d495ec0a (patch)
treea386c3a4a0a38e4c67c4f1a541b5d0472b65ff40 /src/modules/m_httpd_stats.cpp
parent880ae2dab166b4c8e72bc85a925c548f3d451a63 (diff)
Fix the FIXME related to new module event and loading stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8539 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_httpd_stats.cpp')
-rw-r--r--src/modules/m_httpd_stats.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp
index e26ab5e96..9324e974d 100644
--- a/src/modules/m_httpd_stats.cpp
+++ b/src/modules/m_httpd_stats.cpp
@@ -119,17 +119,13 @@ class ModuleHttpStats : public Module
data << "</general>";
data << "<modulelist>";
- /* XXX FIXME
- * for (int i = 0; i <= ServerInstance->Modules->GetCount(); i++)
+ std::vector<std::string> module_names = ServerInstance->Modules->GetAllModuleNames(0);
+ for (std::vector<std::string>::iterator i = module_names.begin(); i != module_names.end(); ++i)
{
- if (!ServerInstance->Config->module_names[i].empty())
- {
- Version v = ServerInstance->Modules->modules[i]->GetVersion();
- data << "<module><name>" << ServerInstance->Config->module_names[i] << "</name><version>" <<
- v.Major << "." << v.Minor << "." << v.Revision << "." << v.Build << "</version></module>";
- }
+ Module* m = ServerInstance->Modules->Find(i->c_str());
+ Version v = m->GetVersion();
+ data << "<module><name>" << *i << "</name><version>" << v.Major << "." << v.Minor << "." << v.Revision << "." << v.Build << "</version></module>";
}
- */
data << "</modulelist>";
data << "<channellist>";