From 99e5c4d39f06d88d58f5ea21fc2db418d495ec0a Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 4 Nov 2007 23:07:27 +0000 Subject: 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 --- src/modules/m_httpd_stats.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/modules') 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 << ""; data << ""; - /* XXX FIXME - * for (int i = 0; i <= ServerInstance->Modules->GetCount(); i++) + std::vector module_names = ServerInstance->Modules->GetAllModuleNames(0); + for (std::vector::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 << "" << ServerInstance->Config->module_names[i] << "" << - v.Major << "." << v.Minor << "." << v.Revision << "." << v.Build << ""; - } + Module* m = ServerInstance->Modules->Find(i->c_str()); + Version v = m->GetVersion(); + data << "" << *i << "" << v.Major << "." << v.Minor << "." << v.Revision << "." << v.Build << ""; } - */ data << ""; data << ""; -- cgit v1.2.3