]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_cloaking.cpp
Fix these to use new hook system (u_listmode wasnt fixed yet)
[user/henk/code/inspircd.git] / src / modules / m_cloaking.cpp
index 99cf1dc0ffa8408f33f879a9e220355c2ede477b..d8dae202bd9d97cc3e60b7effb086c38334f2060 100644 (file)
@@ -334,12 +334,14 @@ class ModuleCloaking : public Module
                        throw ModuleException("Could not add new modes!");
 
                OnRehash(NULL,"");
+               Implementation eventlist[] = { I_OnRehash };
+               ServerInstance->Modules->Attach(eventlist, this, 1);
        }
        
        virtual ~ModuleCloaking()
        {
                ServerInstance->Modes->DelMode(cu);
-               DELETE(cu);
+               delete cu;
                ServerInstance->Modules->DoneWithInterface("HashRequest");
        }