summaryrefslogtreecommitdiff
path: root/src/modules/m_sqloper.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-02-22 17:12:06 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-02-22 17:12:06 +0100
commit21e25f7aa9091821e24447784d08d8fdd905f1c3 (patch)
tree055430ead556f6ec6326543124df87ec79e91dba /src/modules/m_sqloper.cpp
parent2d97be1d32cb518b104583239c9483410b268fac (diff)
parent75e7eaceba5031927445d5fc9861c8c107fdaa8f (diff)
Merge pull request #1000 from ShutterQuick/master+281
m_sqloper: Add `active` column
Diffstat (limited to 'src/modules/m_sqloper.cpp')
-rw-r--r--src/modules/m_sqloper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_sqloper.cpp b/src/modules/m_sqloper.cpp
index bc46bd7e7..b5f0d6c47 100644
--- a/src/modules/m_sqloper.cpp
+++ b/src/modules/m_sqloper.cpp
@@ -122,7 +122,7 @@ public:
SQL.SetProvider("SQL/" + dbid);
hashtype = tag->getString("hash");
- query = tag->getString("query", "SELECT hostname as host, type FROM ircd_opers WHERE username='$username' AND password='$password'");
+ query = tag->getString("query", "SELECT hostname as host, type FROM ircd_opers WHERE username='$username' AND password='$password' AND active=1;");
}
ModResult OnPreCommand(std::string &command, std::vector<std::string> &parameters, LocalUser *user, bool validated, const std::string &original_line) CXX11_OVERRIDE