aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_restrictchans.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_restrictchans.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_restrictchans.cpp')
-rw-r--r--src/modules/m_restrictchans.cpp11
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)