aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_lockserv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_lockserv.cpp')
-rw-r--r--src/modules/m_lockserv.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/modules/m_lockserv.cpp b/src/modules/m_lockserv.cpp
index 37c6a594f..f374fb994 100644
--- a/src/modules/m_lockserv.cpp
+++ b/src/modules/m_lockserv.cpp
@@ -94,7 +94,10 @@ class ModuleLockserv : public Module
CommandUnlockserv unlockcommand;
public:
- ModuleLockserv() : lockcommand(this, locked), unlockcommand(this, locked)
+ ModuleLockserv()
+ : Module(VF_VENDOR, "Provides the LOCKSERV and UNLOCKSERV commands to lock the server and block all incoming connections until unlocked again")
+ , lockcommand(this, locked)
+ , unlockcommand(this, locked)
{
}
@@ -125,11 +128,6 @@ class ModuleLockserv : public Module
{
return !locked.empty() ? MOD_RES_DENY : MOD_RES_PASSTHRU;
}
-
- Version GetVersion() override
- {
- return Version("Provides the LOCKSERV and UNLOCKSERV commands to lock the server and block all incoming connections until unlocked again", VF_VENDOR);
- }
};
MODULE_INIT(ModuleLockserv)