summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2016-12-08 01:57:47 +0000
committerPeter Powell <petpow@saberuk.com>2016-12-08 02:01:40 +0000
commit3fd1ba753d0e4cb56ecb22ddfdabd6795e17ff25 (patch)
treeb6737fd91223d5291477fc960f0bf880f9d0b40c /src/modules
parent5366dd2abd8fdeecf4a6ff173faf1f241d185628 (diff)
Store config values in a map instead of a unique vector of pairs.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_httpd_config.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_httpd_config.cpp b/src/modules/m_httpd_config.cpp
index 6fd7f4050..11c82c031 100644
--- a/src/modules/m_httpd_config.cpp
+++ b/src/modules/m_httpd_config.cpp
@@ -81,8 +81,8 @@ class ModuleHttpConfig : public Module, public HTTPRequestEventListener
for (ConfigDataHash::iterator x = ServerInstance->Config->config_data.begin(); x != ServerInstance->Config->config_data.end(); ++x)
{
data << "&lt;" << x->first << " ";
- ConfigTag* tag = x->second;
- for (std::vector<KeyVal>::const_iterator j = tag->getItems().begin(); j != tag->getItems().end(); j++)
+ const ConfigItems& items = x->second->getItems();
+ for (ConfigItems::const_iterator j = items.begin(); j != items.end(); j++)
{
data << Sanitize(j->first) << "=&quot;" << Sanitize(j->second) << "&quot; ";
}