]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_blockamsg.cpp
Argh, i give up
[user/henk/code/inspircd.git] / src / modules / m_blockamsg.cpp
index 9a6d6e34a406cea969a1789a113cae345dcb5b52..4741eebef0b27225e1dab096fa4aed1593af0fd3 100644 (file)
@@ -44,19 +44,13 @@ class ModuleBlockAmsg : public Module
        BlockAction action;
        
  public:
-       ModuleBlockAmsg(InspIRCd* Me)
-       : Module(Me)
+       ModuleBlockAmsg(InspIRCd* Me) : Module(Me)
        {
-               
                this->OnRehash(NULL,"");
                Implementation eventlist[] = { I_OnRehash, I_OnPreCommand, I_OnCleanup };
                ServerInstance->Modules->Attach(eventlist, this, 3);
        }
 
-       void Implements(char* List)
-       {
-               List[I_OnRehash] = List[I_OnPreCommand] = List[I_OnCleanup] = 1;
-       }
        
        virtual ~ModuleBlockAmsg()
        {
@@ -178,7 +172,7 @@ class ModuleBlockAmsg : public Module
                        user->GetExt("amsgblock", m);
                        if(m)
                        {
-                               DELETE(m);
+                               delete m;
                                user->Shrink("amsgblock");
                        }
                }