X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_sha256.cpp;h=1be4551c80c93860581e47479743e62a848e5bcf;hb=2ab88037d8d7d6df3fb9686216a0b36f5ece2313;hp=26c70346edd168b01fb30e52aedd141c351e488d;hpb=76d7e8a0684b38a82e6c05ebd7538b69660e1bef;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_sha256.cpp b/src/modules/m_sha256.cpp index 26c70346e..1be4551c8 100644 --- a/src/modules/m_sha256.cpp +++ b/src/modules/m_sha256.cpp @@ -54,9 +54,6 @@ #ifdef HAS_STDINT #include #endif -#include "users.h" -#include "channels.h" -#include "modules.h" #include "m_hash.h" #ifndef HAS_STDINT @@ -244,12 +241,12 @@ class ModuleSHA256 : public Module ModuleSHA256(InspIRCd* Me) : Module(Me), key(NULL), chars(NULL) { - ServerInstance->PublishInterface("HashRequest", this); + ServerInstance->Modules->PublishInterface("HashRequest", this); } virtual ~ModuleSHA256() { - ServerInstance->UnpublishInterface("HashRequest", this); + ServerInstance->Modules->UnpublishInterface("HashRequest", this); } void Implements(char *List) @@ -292,26 +289,4 @@ class ModuleSHA256 : public Module } }; - -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; -} +MODULE_INIT(ModuleSHA256)