]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_shun.cpp
Replace OnRehash() with ReadConfig() that is called on boot, on module load and on...
[user/henk/code/inspircd.git] / src / modules / m_shun.cpp
index dbc1812c700ce96e42f244097e1d13fa4d6bf40e..b5d579d00bce85718aa714909d8d5e23c8a272f0 100644 (file)
@@ -181,8 +181,6 @@ class ModuleShun : public Module
        {
                ServerInstance->XLines->RegisterFactory(&f);
                ServerInstance->Modules->AddService(cmd);
-
-               OnRehash(NULL);
        }
 
        ~ModuleShun()
@@ -206,7 +204,7 @@ class ModuleShun : public Module
                return MOD_RES_DENY;
        }
 
-       void OnRehash(User* user) CXX11_OVERRIDE
+       void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE
        {
                ConfigTag* tag = ServerInstance->Config->ConfValue("shun");
                std::string cmds = tag->getString("enabledcommands");