mirror of
https://github.com/anope/anope.git
synced 2026-06-28 03:16:38 +02:00
Also make m_sql_authentication block nick grouping if it is disabling registration
This commit is contained in:
@@ -92,7 +92,7 @@ class ModuleSQLAuthentication : public Module
|
||||
|
||||
EventReturn OnPreCommand(CommandSource &source, Command *command, std::vector<Anope::string> ¶ms) anope_override
|
||||
{
|
||||
if (!this->disable_reason.empty() && command->name == "nickserv/register")
|
||||
if (!this->disable_reason.empty() && (command->name == "nickserv/register" || command->name == "nickserv/group"))
|
||||
{
|
||||
source.Reply(this->disable_reason);
|
||||
return EVENT_STOP;
|
||||
|
||||
Reference in New Issue
Block a user