diff options
| author | 2026-04-30 22:29:38 +0100 | |
|---|---|---|
| committer | 2026-04-30 23:20:14 +0100 | |
| commit | 9bb55626d51f217466bc08104d2f32eb0bf57c02 (patch) | |
| tree | 44d8c00b97674cd4e35c5a1def208047bf02bcfa /modules/extra/ldap.cpp | |
| parent | Move CommandLine from ServerConfig to InspIRCd. (diff) | |
Switch ascii comparisons over to our own casemap functions.
Diffstat (limited to 'modules/extra/ldap.cpp')
| -rw-r--r-- | modules/extra/ldap.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/extra/ldap.cpp b/modules/extra/ldap.cpp index 50cc9022e..26799df2e 100644 --- a/modules/extra/ldap.cpp +++ b/modules/extra/ldap.cpp @@ -259,12 +259,12 @@ private: if (urlComponents.dwSchemeLength > 0) { const std::string scheme(urlComponents.lpszScheme); - if (insp::equalsci(scheme, "ldaps")) + if (insp::ascii_equals(scheme, "ldaps")) { port = 636; // Default encrypted port. secure = true; } - else if (!insp::equalsci(scheme, "ldap")) + else if (!insp::ascii_equals(scheme, "ldap")) return LDAP_CONNECT_ERROR; // Invalid protocol. } @@ -369,9 +369,9 @@ public: , config(tag) { std::string scope = config->getString("searchscope"); - if (insp::equalsci(scope, "base")) + if (insp::ascii_equals(scope, "base")) searchscope = LDAP_SCOPE_BASE; - else if (insp::equalsci(scope, "onelevel")) + else if (insp::ascii_equals(scope, "onelevel")) searchscope = LDAP_SCOPE_ONELEVEL; else searchscope = LDAP_SCOPE_SUBTREE; @@ -628,7 +628,7 @@ public: for (const auto& [_, tag] : ServerInstance->Config->ConfTags("database")) { - if (!insp::equalsci(tag->getString("module"), "ldap")) + if (!insp::ascii_equals(tag->getString("module"), "ldap")) continue; std::string id = tag->getString("id"); |
