aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_timedbans.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_timedbans.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_timedbans.cpp')
-rw-r--r--src/modules/m_timedbans.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp
index cd8a1ec60..9f83cd967 100644
--- a/src/modules/m_timedbans.cpp
+++ b/src/modules/m_timedbans.cpp
@@ -193,12 +193,14 @@ class ChannelMatcher
class ModuleTimedBans : public Module
{
+ private:
CommandTban cmd;
BanWatcher banwatcher;
public:
ModuleTimedBans()
- : cmd(this)
+ : Module(VF_VENDOR | VF_COMMON, "Provides the TBAN command, timed channel bans")
+ , cmd(this)
, banwatcher(this)
{
}
@@ -241,11 +243,6 @@ class ModuleTimedBans : public Module
// Remove all timed bans affecting the channel from internal bookkeeping
TimedBanList.erase(std::remove_if(TimedBanList.begin(), TimedBanList.end(), ChannelMatcher(chan)), TimedBanList.end());
}
-
- Version GetVersion() override
- {
- return Version("Provides the TBAN command, timed channel bans", VF_COMMON | VF_VENDOR);
- }
};
MODULE_INIT(ModuleTimedBans)