]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_hidechans.cpp
More (last of extra)
[user/henk/code/inspircd.git] / src / modules / m_hidechans.cpp
index cf7c95c0fafff8ce3b42dac60514c520ecf12c72..44d503ff3fbd51256e9473da3de14a27aaae6fd9 100644 (file)
  * ---------------------------------------------------
  */
 
+#include "inspircd.h"
 #include "users.h"
 #include "channels.h"
 #include "modules.h"
-#include "inspircd.h"
 
 /* $ModDesc: Provides support for hiding channels with user mode +I */
 
@@ -91,26 +91,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);