]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_banexception.cpp
Make various self contained methods static.
[user/henk/code/inspircd.git] / src / modules / m_banexception.cpp
index a2fd17651ffe58d3c8a1b178f921265fd7d39846..b10ed36042b62d50fb4503de031623d05e6eb2e4 100644 (file)
@@ -24,8 +24,6 @@
 #include "inspircd.h"
 #include "listmode.h"
 
-/* $ModDesc: Provides support for the +e channel mode */
-
 /* Written by Om<om@inspircd.org>, April 2005. */
 /* Rewritten to use the listmode utility by Om, December 2005 */
 /* Adapted from m_exception, which was originally based on m_chanprotect and m_silence */
@@ -53,15 +51,6 @@ class ModuleBanException : public Module
        {
        }
 
-       void init() CXX11_OVERRIDE
-       {
-               ServerInstance->Modules->AddService(be);
-
-               be.DoImplements(this);
-               Implementation list[] = { I_OnRehash, I_On005Numeric, I_OnExtBanCheck, I_OnCheckChannelBan };
-               ServerInstance->Modules->Attach(list, this, sizeof(list)/sizeof(Implementation));
-       }
-
        void On005Numeric(std::map<std::string, std::string>& tokens) CXX11_OVERRIDE
        {
                tokens["EXCEPTS"] = "e";
@@ -116,12 +105,7 @@ class ModuleBanException : public Module
                return MOD_RES_PASSTHRU;
        }
 
-       void OnSyncChannel(Channel* chan, Module* proto, void* opaque) CXX11_OVERRIDE
-       {
-               be.DoSyncChannel(chan, proto, opaque);
-       }
-
-       void OnRehash(User* user) CXX11_OVERRIDE
+       void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE
        {
                be.DoRehash();
        }