1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 07:23:14 +02:00

Also have m_ldap_authentication disable nick grouping if registration is disabled

This commit is contained in:
Adam
2013-12-30 10:42:07 -05:00
parent 3b80da9cbd
commit 567700b5a6
+8 -4
View File
@@ -243,12 +243,16 @@ class NSIdentifyLDAP : public Module
EventReturn OnPreCommand(CommandSource &source, Command *command, std::vector<Anope::string> &params) anope_override
{
if (!this->disable_register_reason.empty() && command->name == "nickserv/register")
if (!this->disable_register_reason.empty())
{
source.Reply(this->disable_register_reason);
return EVENT_STOP;
if (command->name == "nickserv/register" || command->name == "nickserv/group")
{
source.Reply(this->disable_register_reason);
return EVENT_STOP;
}
}
else if (!email_attribute.empty() && !this->disable_email_reason.empty() && command->name == "nickserv/set/email")
if (!email_attribute.empty() && !this->disable_email_reason.empty() && command->name == "nickserv/set/email")
{
source.Reply(this->disable_email_reason);
return EVENT_STOP;