From 1a800f7b3db23cdef7e167cd25c0f3b2a64a8e46 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 9 Apr 2020 18:57:50 +0100 Subject: Improve storage of module description, flags, and link data. --- src/modules/m_nicklock.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/modules/m_nicklock.cpp') 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)) -- cgit v1.3.1-10-gc9f91