]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_helpop.cpp
Replace OnRehash() with ReadConfig() that is called on boot, on module load and on...
[user/henk/code/inspircd.git] / src / modules / m_helpop.cpp
index a2fead6307aae21c9d2ddb421480e95deb1319e5..6259636ce3b03a326f4a95f1154243933566298c 100644 (file)
@@ -108,14 +108,11 @@ class ModuleHelpop : public Module
 
                void init() CXX11_OVERRIDE
                {
-                       ReadConfig();
                        ServerInstance->Modules->AddService(ho);
                        ServerInstance->Modules->AddService(cmd);
-                       Implementation eventlist[] = { I_OnRehash, I_OnWhois };
-                       ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
                }
 
-               void ReadConfig()
+               void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE
                {
                        helpop_map.clear();
 
@@ -148,11 +145,6 @@ class ModuleHelpop : public Module
 
                }
 
-               void OnRehash(User* user) CXX11_OVERRIDE
-               {
-                       ReadConfig();
-               }
-
                void OnWhois(User* src, User* dst) CXX11_OVERRIDE
                {
                        if (dst->IsModeSet(ho))