X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_chanhistory.cpp;h=24c6237b3812b6d7e9a18426d2563381ef6c4944;hb=357d190074ee58809b31ea0c08543566168bddf6;hp=f1f9ed614907e79f401f5ec67f67853a402f9ad4;hpb=1031f333332cf1b09db4fd632f141143ee637c34;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_chanhistory.cpp b/src/modules/m_chanhistory.cpp index f1f9ed614..24c6237b3 100644 --- a/src/modules/m_chanhistory.cpp +++ b/src/modules/m_chanhistory.cpp @@ -114,15 +114,7 @@ class ModuleChanHistory : public Module { } - void init() CXX11_OVERRIDE - { - 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);