diff options
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 |