diff options
-rw-r--r-- | src/modules/m_ssl_dummy.cpp | 24 | ||||
-rw-r--r-- | src/modules/m_stripcolor.cpp | 27 | ||||
-rw-r--r-- | src/modules/m_svshold.cpp | 24 |
3 files changed, 3 insertions, 72 deletions
diff --git a/src/modules/m_ssl_dummy.cpp b/src/modules/m_ssl_dummy.cpp index 603a0da0e..2cb420d9b 100644 --- a/src/modules/m_ssl_dummy.cpp +++ b/src/modules/m_ssl_dummy.cpp @@ -81,26 +81,4 @@ class ModuleSSLDummy : public Module } }; -class ModuleSSLDummyFactory : public ModuleFactory -{ - public: - ModuleSSLDummyFactory() - { - } - - ~ModuleSSLDummyFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleSSLDummy(Me); - } -}; - - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleSSLDummyFactory; -} - +MODULE_INIT(ModuleSSLDummy); diff --git a/src/modules/m_stripcolor.cpp b/src/modules/m_stripcolor.cpp index f8130336d..25d2f5a49 100644 --- a/src/modules/m_stripcolor.cpp +++ b/src/modules/m_stripcolor.cpp @@ -203,29 +203,4 @@ class ModuleStripColor : public Module }; -// stuff down here is the module-factory stuff. For basic modules you can ignore this. - -class ModuleStripColorFactory : public ModuleFactory -{ - public: - ModuleStripColorFactory() - { - } - - ~ModuleStripColorFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleStripColor(Me); - } - -}; - - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleStripColorFactory; -} - +MODULE_INIT(ModuleStripColor); diff --git a/src/modules/m_svshold.cpp b/src/modules/m_svshold.cpp index f53f0441c..a056c9d84 100644 --- a/src/modules/m_svshold.cpp +++ b/src/modules/m_svshold.cpp @@ -279,26 +279,4 @@ class ModuleSVSHold : public Module } }; -class ModuleSVSHoldFactory : public ModuleFactory -{ - public: - ModuleSVSHoldFactory() - { - } - - ~ModuleSVSHoldFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleSVSHold(Me); - } - -}; - - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleSVSHoldFactory; -} +MODULE_INIT(ModuleSVSHold); |