summaryrefslogtreecommitdiff
path: root/modules/extra/m_sql_authentication.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-03-16 20:50:32 -0500
committerAdam <Adam@anope.org>2013-03-16 21:53:03 -0500
commit51963915ba17dc4e8e13d7430f1dcbddcebe9e3d (patch)
tree391e40982c72147ebdd78e02caf7b8a20d6d3009 /modules/extra/m_sql_authentication.cpp
parent810685cb739dc32690bd571492629293b4a0e1fd (diff)
Remove remaining disable_ns_register references in example config
Diffstat (limited to 'modules/extra/m_sql_authentication.cpp')
-rw-r--r--modules/extra/m_sql_authentication.cpp4
1 files changed, 1 insertions, 3 deletions
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::Provider> 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>("SQL::Provider", this->engine);
@@ -105,7 +103,7 @@ class ModuleSQLAuthentication : public Module
EventReturn OnPreCommand(CommandSource &source, Command *command, std::vector<Anope::string> &params) 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;