aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_sqloper.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-04-09 18:57:50 +0100
committerGravatar Sadie Powell2020-04-11 13:54:05 +0100
commit1a800f7b3db23cdef7e167cd25c0f3b2a64a8e46 (patch)
treef302e819c6707d578c2011544069a21640fab735 /src/modules/m_sqloper.cpp
parentDefault <sslprofile:hash> to sha256 for GnuTLS and OpenSSL. (diff)
Improve storage of module description, flags, and link data.
Diffstat (limited to 'src/modules/m_sqloper.cpp')
-rw-r--r--src/modules/m_sqloper.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/modules/m_sqloper.cpp b/src/modules/m_sqloper.cpp
index 71264f26f..09092e5a8 100644
--- a/src/modules/m_sqloper.cpp
+++ b/src/modules/m_sqloper.cpp
@@ -163,6 +163,7 @@ class OperQuery : public SQL::Query
class ModuleSQLOper : public Module
{
+ private:
// Whether OperQuery is running
bool active = false;
std::string query;
@@ -172,7 +173,8 @@ class ModuleSQLOper : public Module
public:
ModuleSQLOper()
- : SQL(this, "SQL")
+ : Module(VF_VENDOR, "Allows storage of oper credentials in an SQL table")
+ , SQL(this, "SQL")
{
}
@@ -245,11 +247,6 @@ public:
*/
ServerInstance->Modules.SetPriority(this, I_OnPreCommand, PRIORITY_FIRST);
}
-
- Version GetVersion() override
- {
- return Version("Allows storage of oper credentials in an SQL table", VF_VENDOR);
- }
};
MODULE_INIT(ModuleSQLOper)