From ade1500382366b0cf24147370aea0a3e5bbe50bf Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Mon, 6 Jan 2014 13:37:06 +0100 Subject: Automatically register and unregister mode watchers --- src/modules/m_timedbans.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/modules/m_timedbans.cpp') 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; -- cgit v1.2.3