]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_securelist.cpp
Fix potential for duplicate SID if the SID is auto generated.
[user/henk/code/inspircd.git] / src / modules / m_securelist.cpp
index d98870425e49f8f593af1b206723c2e96ba628f3..d3292145511796879f922fa179dc2ed566f5cb15 100644 (file)
  * ---------------------------------------------------
  */
 
-#include "inspircd.h" 
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
+#include "inspircd.h"
 
 /* $ModDesc: A module overriding /list, and making it safe - stop those sendq problems. */
 
@@ -94,29 +91,4 @@ class ModuleSecureList : public Module
 
 };
  
-/******************************************************************************************************/
-class ModuleSecureListFactory : public ModuleFactory
-{
- public:
-       ModuleSecureListFactory()
-       {
-       }
-       ~ModuleSecureListFactory()
-       {
-       }
-       virtual Module * CreateModule(InspIRCd* Me)
-       {
-               return new ModuleSecureList(Me);
-       }
-};
-extern "C" DllExport void * init_module( void )
-{
-       return new ModuleSecureListFactory;
-}
+MODULE_INIT(ModuleSecureList)