]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chanhistory.cpp
Replace OnRehash() with ReadConfig() that is called on boot, on module load and on...
[user/henk/code/inspircd.git] / src / modules / m_chanhistory.cpp
index f1f9ed614907e79f401f5ec67f67853a402f9ad4..0e0841f6760a916d051afe2289882a764e4fe868 100644 (file)
@@ -118,11 +118,9 @@ class ModuleChanHistory : public Module
        {
                ServerInstance->Modules->AddService(m);
                ServerInstance->Modules->AddService(m.ext);
-
-               OnRehash(NULL);
        }
 
-       void OnRehash(User*) CXX11_OVERRIDE
+       void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE
        {
                ConfigTag* tag = ServerInstance->Config->ConfValue("chanhistory");
                m.maxlines = tag->getInt("maxlines", 50);