diff options
author | Adam <Adam@anope.org> | 2013-12-30 10:42:07 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-12-30 10:42:07 -0500 |
commit | 567700b5a66865c27d08a961733b75cb96cfc7d2 (patch) | |
tree | 431447b17ea58e447c601a2081dfb35796989137 /modules/extra/m_ldap_authentication.cpp | |
parent | 3b80da9cbd111ce20bb8babcdea03170e613c0fd (diff) |
Also have m_ldap_authentication disable nick grouping if registration is disabled
Diffstat (limited to 'modules/extra/m_ldap_authentication.cpp')
-rw-r--r-- | modules/extra/m_ldap_authentication.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/extra/m_ldap_authentication.cpp b/modules/extra/m_ldap_authentication.cpp index e3613051f..5db8382ee 100644 --- a/modules/extra/m_ldap_authentication.cpp +++ b/modules/extra/m_ldap_authentication.cpp @@ -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; |