aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_nicklock.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_nicklock.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_nicklock.cpp')
-rw-r--r--src/modules/m_nicklock.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/modules/m_nicklock.cpp b/src/modules/m_nicklock.cpp
index 31f9249e0..571f6ae13 100644
--- a/src/modules/m_nicklock.cpp
+++ b/src/modules/m_nicklock.cpp
@@ -144,22 +144,20 @@ class CommandNickunlock : public Command
class ModuleNickLock : public Module
{
+ private:
IntExtItem locked;
CommandNicklock cmd1;
CommandNickunlock cmd2;
+
public:
ModuleNickLock()
- : locked(this, "nick_locked", ExtensionItem::EXT_USER)
+ : Module(VF_VENDOR | VF_OPTCOMMON, "Provides the NICKLOCK command, allows an oper to change a users nick and lock them to it until they quit")
+ , locked(this, "nick_locked", ExtensionItem::EXT_USER)
, cmd1(this, locked)
, cmd2(this, locked)
{
}
- Version GetVersion() override
- {
- return Version("Provides the NICKLOCK command, allows an oper to change a users nick and lock them to it until they quit", VF_OPTCOMMON | VF_VENDOR);
- }
-
ModResult OnUserPreNick(LocalUser* user, const std::string& newnick) override
{
if (locked.get(user))