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_restrictchans.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/modules/m_restrictchans.cpp') diff --git a/src/modules/m_restrictchans.cpp b/src/modules/m_restrictchans.cpp index e00a9e84e..12d5bd239 100644 --- a/src/modules/m_restrictchans.cpp +++ b/src/modules/m_restrictchans.cpp @@ -30,6 +30,7 @@ typedef insp::flat_set AllowChans; class ModuleRestrictChans : public Module { + private: AllowChans allowchans; bool allowregistered = false; @@ -52,6 +53,11 @@ class ModuleRestrictChans : public Module } public: + ModuleRestrictChans() + : Module(VF_VENDOR, "Allows restricting who can create channels") + { + } + void ReadConfig(ConfigStatus& status) override { AllowChans newallows; @@ -82,11 +88,6 @@ class ModuleRestrictChans : public Module return MOD_RES_PASSTHRU; } - - Version GetVersion() override - { - return Version("Allows restricting who can create channels", VF_VENDOR); - } }; MODULE_INIT(ModuleRestrictChans) -- cgit v1.3.1-10-gc9f91