]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_banexception.cpp
dz is determined to crash your ircd :P
[user/henk/code/inspircd.git] / src / modules / m_banexception.cpp
index 152415a9170c0079929571102b9cc57cf77a5af5..4f36fb8c9f0cb84e8e2f9fea26bd4aef5999b6f5 100644 (file)
@@ -48,7 +48,7 @@ public:
                be = new BanException(ServerInstance);
                if (!ServerInstance->AddMode(be, 'e'))
                        throw ModuleException("Could not add new modes!");
-               ServerInstance->PublishInterface("ChannelBanList", this);
+               ServerInstance->Modules->PublishInterface("ChannelBanList", this);
        }
        
        virtual void Implements(char* List)
@@ -141,8 +141,8 @@ public:
        virtual ~ModuleBanException()
        {
                ServerInstance->Modes->DelMode(be);
-               DELETE(be);
-               ServerInstance->UnpublishInterface("ChannelBanList", this);
+               delete be;
+               ServerInstance->Modules->UnpublishInterface("ChannelBanList", this);
        }
 };