]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_halfop, m_chanhistory Remove redundant ModeParser::DelMode() calls, the modes are...
authorattilamolnar <attilamolnar@hush.com>
Thu, 12 Jul 2012 18:57:44 +0000 (20:57 +0200)
committerattilamolnar <attilamolnar@hush.com>
Thu, 12 Jul 2012 18:57:44 +0000 (20:57 +0200)
src/modules/m_chanhistory.cpp
src/modules/m_halfop.cpp

index 482d526ebc3e05d9e413c4521617733a8bfc4c87..64e573286b308bb0ffb4c83b31e5cd1c32fab02a 100644 (file)
@@ -132,11 +132,6 @@ class ModuleChanHistory : public Module
                sendnotice = tag->getInt("notice", true);
        }
 
-       ~ModuleChanHistory()
-       {
-               ServerInstance->Modes->DelMode(&m);
-       }
-
        void OnUserMessage(User* user,void* dest,int target_type, const std::string &text, char status, const CUList&)
        {
                if (target_type == TYPE_CHANNEL && status == 0)
index f0eda3e5698fa3a86b924bc02db0cce14cf5c53a..7a43f024169f8cc95805bd33362c046ac62affd1 100644 (file)
@@ -92,11 +92,6 @@ class ModuleHalfop : public Module
                        throw ModuleException("Could not add new modes!");
        }
 
-       ~ModuleHalfop()
-       {
-               ServerInstance->Modes->DelMode(&mh);
-       }
-
        Version GetVersion()
        {
                return Version("Channel half-operator mode provider", VF_VENDOR);