diff options
author | Peter Powell <petpow@saberuk.com> | 2017-07-12 16:41:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-12 16:41:28 +0100 |
commit | 7851faac62d7a83c94cd5d37e0109b5d0a152bf9 (patch) | |
tree | a5140013cb0e0d8c1a2f484645a32001a4bc808c /src/modules | |
parent | 834c94679b7df475e50d87ccb11311e297a78718 (diff) | |
parent | 4b37c612257fa94a790d4698a2660112473599ae (diff) |
Merge pull request #1267 from SaberUK/master+config
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) << "" "; } |