summaryrefslogtreecommitdiff
path: root/modules/ldap_oper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/ldap_oper.cpp')
-rw-r--r--modules/ldap_oper.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/ldap_oper.cpp b/modules/ldap_oper.cpp
index 3f34eb7ca..fa57f7aa9 100644
--- a/modules/ldap_oper.cpp
+++ b/modules/ldap_oper.cpp
@@ -92,15 +92,15 @@ public:
}
- void OnReload(Configuration::Conf *conf) override
+ void OnReload(Configuration::Conf &conf) override
{
- Configuration::Block *config = Config->GetModule(this);
+ Configuration::Block &config = Config->GetModule(this);
- this->binddn = config->Get<const Anope::string>("binddn");
- this->password = config->Get<const Anope::string>("password");
- this->basedn = config->Get<const Anope::string>("basedn");
- this->filter = config->Get<const Anope::string>("filter");
- opertype_attribute = config->Get<const Anope::string>("opertype_attribute");
+ this->binddn = config.Get<const Anope::string>("binddn");
+ this->password = config.Get<const Anope::string>("password");
+ this->basedn = config.Get<const Anope::string>("basedn");
+ this->filter = config.Get<const Anope::string>("filter");
+ opertype_attribute = config.Get<const Anope::string>("opertype_attribute");
for (const auto *oper : my_opers)
delete oper;