diff options
author | Peter Powell <petpow@saberuk.com> | 2016-12-08 01:57:47 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2016-12-08 02:01:40 +0000 |
commit | 3fd1ba753d0e4cb56ecb22ddfdabd6795e17ff25 (patch) | |
tree | b6737fd91223d5291477fc960f0bf880f9d0b40c /src/modules | |
parent | 5366dd2abd8fdeecf4a6ff173faf1f241d185628 (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.cpp | 4 |
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 << "<" << 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) << "="" << Sanitize(j->second) << "" "; } |