diff options
author | Sadie Powell <sadie@witchery.services> | 2025-04-14 11:31:19 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-04-14 11:31:19 +0100 |
commit | d04a312d0d1edd1223b55ed89b7fb707ceca3117 (patch) | |
tree | 39b0c165b17d5ff4571423b2bc279b34546c3b72 /modules/ldap_authentication.cpp | |
parent | 099f0ce43a7e34e4a6e74d91aa911c745c262ba8 (diff) |
Add Anope::Templace and switch all template strings to use it.
Diffstat (limited to 'modules/ldap_authentication.cpp')
-rw-r--r-- | modules/ldap_authentication.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/ldap_authentication.cpp b/modules/ldap_authentication.cpp index f4e3ddd0a..5ca00bdf9 100644 --- a/modules/ldap_authentication.cpp +++ b/modules/ldap_authentication.cpp @@ -85,7 +85,10 @@ public: { if (ii->admin_bind) { - Anope::string sf = search_filter.replace_all_cs("%account", ii->req->GetAccount()).replace_all_cs("%object_class", object_class); + auto sf = Anope::Template(search_filter, { + { "account", ii->req->GetAccount() }, + { "object_class", object_class }, + }); try { Log(LOG_DEBUG) << "ldap_authentication: searching for " << sf; |