]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sha256.cpp
No idea why this wasn't using MODULE_INIT. Thanks Om.
[user/henk/code/inspircd.git] / src / modules / m_sha256.cpp
index 6e1ac0e56aa9dc033e8728c45623687c25a41d2a..6875a5f947e42e9f13afcb0b5340269a10d2e22e 100644 (file)
 /* $ModDesc: Allows for SHA-256 encrypted oper passwords */
 /* $ModDep: m_hash.h */
 
-#include "inspircd_config.h"
+#include "inspircd.h"
 #ifdef HAS_STDINT
 #include <stdint.h>
 #endif
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "inspircd.h"
-
 #include "m_hash.h"
 
 #ifndef HAS_STDINT
@@ -294,26 +289,5 @@ class ModuleSHA256 : public Module
        }
 };
 
+MODULE_INIT(ModuleSHA256)
 
-class ModuleSHA256Factory : public ModuleFactory
-{
-public:
-       ModuleSHA256Factory()
-       {
-       }
-
-       ~ModuleSHA256Factory()
-       {
-       }
-
-       virtual Module *CreateModule(InspIRCd* Me)
-       {
-               return new ModuleSHA256(Me);
-       }
-
-};
-
-extern "C" DllExport void * init_module( void )
-{
-       return new ModuleSHA256Factory;
-}