]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_banexception.cpp
Replace OnRehash() with ReadConfig() that is called on boot, on module load and on...
[user/henk/code/inspircd.git] / src / modules / m_banexception.cpp
index 2eb5083f9493a9958e65a2ef6fb29c7a847a8618..ad42449451c665dff817278a166af03e597bc226 100644 (file)
@@ -56,8 +56,6 @@ class ModuleBanException : public Module
                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
@@ -119,7 +117,7 @@ class ModuleBanException : public Module
                be.DoSyncChannel(chan, proto, opaque);
        }
 
-       void OnRehash(User* user) CXX11_OVERRIDE
+       void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE
        {
                be.DoRehash();
        }