summaryrefslogtreecommitdiff
path: root/src/modules/m_httpd_stats.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_httpd_stats.cpp')
-rw-r--r--src/modules/m_httpd_stats.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp
index e68a3756f..27548c91c 100644
--- a/src/modules/m_httpd_stats.cpp
+++ b/src/modules/m_httpd_stats.cpp
@@ -31,8 +31,6 @@ using namespace std;
extern std::vector<userrec*> all_opers;
extern InspIRCd* ServerInstance;
-extern int MODCOUNT;
-
typedef std::map<irc::string,int> StatsHash;
typedef StatsHash::iterator StatsIter;
@@ -123,7 +121,7 @@ class ModuleHttpStats : public Module
data << "<div class='modules'>";
data << "<h2>Modules</h2>";
data << "<table>";
- for (int i = 0; i <= MODCOUNT; i++)
+ for (int i = 0; i <= ServerInstance->GetModuleCount(); i++)
{
if (ServerInstance->Config->module_names[i] != "")
data << "<tr><td>" << ServerInstance->Config->module_names[i] << "</td></tr>";