]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_exemptchanops.cpp
Delete modewatchers when unloading modules that use them to keep the server from...
[user/henk/code/inspircd.git] / src / modules / m_exemptchanops.cpp
index 83e21bef3c2c14a16234928267e8de55cf89b5dd..8b3fbf074a9f71ea9a7a794918197fcebd213a6a 100644 (file)
@@ -73,12 +73,11 @@ class ModuleExemptChanOps : public Module
                ServerInstance->Modules->Attach(eventlist, this, 4);
 
                OnRehash(NULL);
-               ServerInstance->Modules->PublishInterface("ChannelBanList", this);
        }
 
        virtual Version GetVersion()
        {
-               return Version("Provides the ability to allow channel operators to be exempt from certain modes.",VF_VENDOR|VF_COMMON,API_VERSION);
+               return Version("Provides the ability to allow channel operators to be exempt from certain modes.",VF_VENDOR|VF_COMMON);
        }
 
        virtual void OnRehash(User* user)
@@ -120,11 +119,6 @@ class ModuleExemptChanOps : public Module
 
                return MOD_RES_PASSTHRU;
        }
-
-       virtual ~ModuleExemptChanOps()
-       {
-               ServerInstance->Modules->UnpublishInterface("ChannelBanList", this);
-       }
 };
 
 MODULE_INIT(ModuleExemptChanOps)