From 8f81017710b608e134d063b40bc2815d39e747f1 Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 17 Jun 2007 14:00:28 +0000 Subject: Conversions. :D git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7366 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_ssl_dummy.cpp | 24 +----------------------- src/modules/m_stripcolor.cpp | 27 +-------------------------- src/modules/m_svshold.cpp | 24 +----------------------- 3 files changed, 3 insertions(+), 72 deletions(-) (limited to 'src/modules') 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); -- cgit v1.2.3