From 51963915ba17dc4e8e13d7430f1dcbddcebe9e3d Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 16 Mar 2013 20:50:32 -0500 Subject: Remove remaining disable_ns_register references in example config --- modules/extra/m_sql_authentication.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modules/extra/m_sql_authentication.cpp') diff --git a/modules/extra/m_sql_authentication.cpp b/modules/extra/m_sql_authentication.cpp index e1afbc923..abdd745a5 100644 --- a/modules/extra/m_sql_authentication.cpp +++ b/modules/extra/m_sql_authentication.cpp @@ -73,7 +73,6 @@ class ModuleSQLAuthentication : public Module { Anope::string engine; Anope::string query; - bool disable_register; Anope::string disable_reason; ServiceReference SQL; @@ -97,7 +96,6 @@ class ModuleSQLAuthentication : public Module this->engine = config.ReadValue("m_sql_authentication", "engine", "", 0); this->query = config.ReadValue("m_sql_authentication", "query", "", 0); - this->disable_register = config.ReadFlag("m_sql_authentication", "disable_ns_register", "false", 0); this->disable_reason = config.ReadValue("m_sql_authentication", "disable_reason", "", 0); this->SQL = ServiceReference("SQL::Provider", this->engine); @@ -105,7 +103,7 @@ class ModuleSQLAuthentication : public Module EventReturn OnPreCommand(CommandSource &source, Command *command, std::vector ¶ms) anope_override { - if (this->disable_register && !this->disable_reason.empty() && command->name == "nickserv/register") + if (!this->disable_reason.empty() && command->name == "nickserv/register") { source.Reply(this->disable_reason); return EVENT_STOP; -- cgit