summaryrefslogtreecommitdiff
path: root/src/modules/m_timedbans.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-01-06 13:37:06 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-01-06 13:37:06 +0100
commitade1500382366b0cf24147370aea0a3e5bbe50bf (patch)
tree699fe35aaaa3645a8ac0219bce3a44dba1b50ba6 /src/modules/m_timedbans.cpp
parent5a366d8945e1312190d0012eb36d2facaa908650 (diff)
Automatically register and unregister mode watchers
Diffstat (limited to 'src/modules/m_timedbans.cpp')
-rw-r--r--src/modules/m_timedbans.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp
index 40cc162c1..e3a938336 100644
--- a/src/modules/m_timedbans.cpp
+++ b/src/modules/m_timedbans.cpp
@@ -148,16 +148,6 @@ class ModuleTimedBans : public Module
{
}
- void init() CXX11_OVERRIDE
- {
- ServerInstance->Modes->AddModeWatcher(&banwatcher);
- }
-
- ~ModuleTimedBans()
- {
- ServerInstance->Modes->DelModeWatcher(&banwatcher);
- }
-
void OnBackgroundTimer(time_t curtime) CXX11_OVERRIDE
{
timedbans expired;