]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chanhistory.cpp
use documented "value" attribute instead of undocumented "newhost"
[user/henk/code/inspircd.git] / src / modules / m_chanhistory.cpp
index 482d526ebc3e05d9e413c4521617733a8bfc4c87..16eba953f544fb05323c2fd3f269c760497e9305 100644 (file)
@@ -129,12 +129,7 @@ class ModuleChanHistory : public Module
        {
                ConfigTag* tag = ServerInstance->Config->ConfValue("chanhistory");
                m.maxlines = tag->getInt("maxlines", 50);
-               sendnotice = tag->getInt("notice", true);
-       }
-
-       ~ModuleChanHistory()
-       {
-               ServerInstance->Modes->DelMode(&m);
+               sendnotice = tag->getBool("notice", true);
        }
 
        void OnUserMessage(User* user,void* dest,int target_type, const std::string &text, char status, const CUList&)