diff options
author | Sadie Powell <sadie@witchery.services> | 2024-03-14 22:51:24 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-03-14 23:10:53 +0000 |
commit | 4e9d1835232552a1b86d8666e7e7265ce09cbc6a (patch) | |
tree | de02d421cf7bd7c9b28f7d81dcc12279905a4790 /modules/ldap_authentication.cpp | |
parent | 074dfb63a76efb905ad8592502585309299583dd (diff) |
Restore some functionality that was removed in an earlier commit.
Diffstat (limited to 'modules/ldap_authentication.cpp')
-rw-r--r-- | modules/ldap_authentication.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/ldap_authentication.cpp b/modules/ldap_authentication.cpp index 4f4f4f1fc..530c9f85e 100644 --- a/modules/ldap_authentication.cpp +++ b/modules/ldap_authentication.cpp @@ -227,6 +227,12 @@ public: email_attribute = conf->Get<const Anope::string>("email_attribute"); this->disable_register_reason = conf->Get<const Anope::string>("disable_register_reason"); this->disable_email_reason = conf->Get<const Anope::string>("disable_email_reason"); + + if (!email_attribute.empty()) + { + /* Don't complain to users about how they need to update their email, we will do it for them */ + config->GetModule("nickserv")->Set("forceemail", "no"); + } } EventReturn OnPreCommand(CommandSource &source, Command *command, std::vector<Anope::string> ¶ms) override |