]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_hidechans.cpp
Fix potential for duplicate SID if the SID is auto generated.
[user/henk/code/inspircd.git] / src / modules / m_hidechans.cpp
index cf7c95c0fafff8ce3b42dac60514c520ecf12c72..8d2c6b4ebf623239afb1c1f1b6595644bc1d51db 100644 (file)
@@ -11,9 +11,6 @@
  * ---------------------------------------------------
  */
 
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
 #include "inspircd.h"
 
 /* $ModDesc: Provides support for hiding channels with user mode +I */
@@ -91,26 +88,5 @@ class ModuleHideChans : public Module
        }
 };
 
-class ModuleHideChansFactory : public ModuleFactory
-{
- public:
-       ModuleHideChansFactory()
-       {
-       }
-       
-       ~ModuleHideChansFactory()
-       {
-       }
-       
-       virtual Module * CreateModule(InspIRCd* Me)
-       {
-               return new ModuleHideChans(Me);
-       }
-       
-};
-
 
-extern "C" DllExport void * init_module( void )
-{
-       return new ModuleHideChansFactory;
-}
+MODULE_INIT(ModuleHideChans)