]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_timedbans.cpp
Add ProtocolInterface::BroadcastEncap() and infrastructure for manually forwarding...
[user/henk/code/inspircd.git] / src / modules / m_timedbans.cpp
index 2441f1aa812ed4506f42b5efadf8fa42a10127db..e3a93833686355ad265ea950049e964d6e50b0f4 100644 (file)
@@ -75,7 +75,7 @@ class CommandTban : public Command
                setban.push_back(parameters[0]);
                setban.push_back("+b");
                bool isextban = ((mask.size() > 2) && (mask[1] == ':'));
-               if (!isextban && !ServerInstance->IsValidMask(mask))
+               if (!isextban && !InspIRCd::IsValidMask(mask))
                        mask.append("!*@*");
 
                setban.push_back(mask);
@@ -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;