diff options
Diffstat (limited to 'src/modules/m_restrictchans.cpp')
| -rw-r--r-- | src/modules/m_restrictchans.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
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<std::string, irc::insensitive_swo> 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) |
