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:
@@ -243,12 +243,16 @@ class NSIdentifyLDAP : public Module
|
||||
|
||||
EventReturn OnPreCommand(CommandSource &source, Command *command, std::vector<Anope::string> ¶ms) 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;
|
||||
|
||||
Reference in New Issue
Block a user