aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_httpd_acl.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-10-31 20:03:19 +0000
committerGravatar Sadie Powell2020-10-31 22:33:35 +0000
commit441bd151da733d32e194de6e4a1744ae273b83ee (patch)
tree74eb1ee2aef413185bf3906a17f1b2c27373e03a /src/modules/m_httpd_acl.cpp
parentFix reading the <sslprofile> config. (diff)
Add stdalgo::iterator_range and switch config tag reading to use it.
This allows us to use range-based for loops which were not possible with the previous config tag system.
Diffstat (limited to 'src/modules/m_httpd_acl.cpp')
-rw-r--r--src/modules/m_httpd_acl.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/m_httpd_acl.cpp b/src/modules/m_httpd_acl.cpp
index 7715d9b1e..dcf8bda1d 100644
--- a/src/modules/m_httpd_acl.cpp
+++ b/src/modules/m_httpd_acl.cpp
@@ -58,10 +58,8 @@ class ModuleHTTPAccessList : public Module, public HTTPACLEventListener
void ReadConfig(ConfigStatus& status) override
{
std::vector<HTTPACL> new_acls;
- ConfigTagList acls = ServerInstance->Config->ConfTags("httpdacl");
- for (ConfigIter i = acls.first; i != acls.second; i++)
+ for (auto& [_, c] : ServerInstance->Config->ConfTags("httpdacl"))
{
- ConfigTag* c = i->second;
std::string path = c->getString("path");
std::string types = c->getString("types");
irc::commasepstream sep(types);