1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 13:06:38 +02:00

Restore some functionality that was removed in an earlier commit.

This commit is contained in:
Sadie Powell
2024-03-14 22:51:24 +00:00
parent 074dfb63a7
commit 4e9d183523
9 changed files with 95 additions and 21 deletions
+6
View File
@@ -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> &params) override