diff options
-rw-r--r-- | src/modules/extra/m_ssl_oper_cert.cpp | 23 | ||||
-rw-r--r-- | src/modules/extra/m_sslinfo.cpp | 25 |
2 files changed, 2 insertions, 46 deletions
diff --git a/src/modules/extra/m_ssl_oper_cert.cpp b/src/modules/extra/m_ssl_oper_cert.cpp index 971c921b8..c67b50c8c 100644 --- a/src/modules/extra/m_ssl_oper_cert.cpp +++ b/src/modules/extra/m_ssl_oper_cert.cpp @@ -176,26 +176,5 @@ class ModuleOperSSLCert : public Module } }; -class ModuleOperSSLCertFactory : public ModuleFactory -{ - public: - ModuleOperSSLCertFactory() - { - } - - ~ModuleOperSSLCertFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleOperSSLCert(Me); - } - -}; +MODULE_INIT(ModuleOperSSLCert); - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleOperSSLCertFactory; -} diff --git a/src/modules/extra/m_sslinfo.cpp b/src/modules/extra/m_sslinfo.cpp index 3d01033e0..dc9274f1e 100644 --- a/src/modules/extra/m_sslinfo.cpp +++ b/src/modules/extra/m_sslinfo.cpp @@ -90,28 +90,5 @@ class ModuleSSLInfo : public Module } }; - -class ModuleSSLInfoFactory : public ModuleFactory -{ - public: - ModuleSSLInfoFactory() - { - } - - ~ModuleSSLInfoFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleSSLInfo(Me); - } - -}; - - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleSSLInfoFactory; -} +MODULE_INIT(ModuleSSLInfo); |