diff options
| author | 2018-07-24 18:29:43 +0100 | |
|---|---|---|
| committer | 2018-07-24 21:55:10 +0100 | |
| commit | 97a1d6429a735eb279496df010d04e3f42aa4e22 (patch) | |
| tree | a201d8ffe678e5929a2b1d373eef8082d8c6150d /src/modules/extra/m_ldap.cpp | |
| parent | Fix building on Windows. (diff) | |
| download | inspircd++-97a1d6429a735eb279496df010d04e3f42aa4e22.tar.gz inspircd++-97a1d6429a735eb279496df010d04e3f42aa4e22.tar.bz2 inspircd++-97a1d6429a735eb279496df010d04e3f42aa4e22.zip | |
Make more config stuff case insensitive.
Diffstat (limited to 'src/modules/extra/m_ldap.cpp')
| -rw-r--r-- | src/modules/extra/m_ldap.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/extra/m_ldap.cpp b/src/modules/extra/m_ldap.cpp index f3ace5409..8c2752dbf 100644 --- a/src/modules/extra/m_ldap.cpp +++ b/src/modules/extra/m_ldap.cpp @@ -258,9 +258,9 @@ class LDAPService : public LDAPProvider, public SocketThread , con(NULL), config(tag), last_connect(0) { std::string scope = config->getString("searchscope"); - if (scope == "base") + if (stdalgo::string::equalsci(scope, "base")) searchscope = LDAP_SCOPE_BASE; - else if (scope == "onelevel") + else if (stdalgo::string::equalsci(scope, "onelevel")) searchscope = LDAP_SCOPE_ONELEVEL; else searchscope = LDAP_SCOPE_SUBTREE; @@ -533,7 +533,7 @@ class ModuleLDAP : public Module { const reference<ConfigTag>& tag = i->second; - if (tag->getString("module") != "ldap") + if (!stdalgo::string::equalsci(tag->getString("module"), "ldap")) continue; std::string id = tag->getString("id"); |
