From f901c996b97c6d20d776ae2e916fcd75131d13db Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 17 Jun 2007 13:16:07 +0000 Subject: More conversions git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7349 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_blockcolor.cpp | 25 +------------------------ src/modules/m_botmode.cpp | 25 +------------------------ src/modules/m_cban.cpp | 23 +---------------------- src/modules/m_censor.cpp | 26 +------------------------- 4 files changed, 4 insertions(+), 95 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_blockcolor.cpp b/src/modules/m_blockcolor.cpp index 6dd42209f..93048047a 100644 --- a/src/modules/m_blockcolor.cpp +++ b/src/modules/m_blockcolor.cpp @@ -115,27 +115,4 @@ class ModuleBlockColour : public Module } }; - -class ModuleBlockColourFactory : public ModuleFactory -{ - public: - ModuleBlockColourFactory() - { - } - - ~ModuleBlockColourFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleBlockColour(Me); - } - -}; - - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleBlockColourFactory; -} +MODULE_INIT(ModuleBlockColour); diff --git a/src/modules/m_botmode.cpp b/src/modules/m_botmode.cpp index 6e53273ac..646df57a0 100644 --- a/src/modules/m_botmode.cpp +++ b/src/modules/m_botmode.cpp @@ -91,28 +91,5 @@ class ModuleBotMode : public Module }; -// stuff down here is the module-factory stuff. For basic modules you can ignore this. -class ModuleBotModeFactory : public ModuleFactory -{ - public: - ModuleBotModeFactory() - { - } - - ~ModuleBotModeFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleBotMode(Me); - } - -}; - - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleBotModeFactory; -} +MODULE_INIT(ModuleBotMode); diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp index df24ddf18..35005c741 100644 --- a/src/modules/m_cban.cpp +++ b/src/modules/m_cban.cpp @@ -247,26 +247,5 @@ class ModuleCBan : public Module } }; -class ModuleCBanFactory : public ModuleFactory -{ - public: - ModuleCBanFactory() - { - } - - ~ModuleCBanFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleCBan(Me); - } - -}; +MODULE_INIT(ModuleCBan); - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleCBanFactory; -} diff --git a/src/modules/m_censor.cpp b/src/modules/m_censor.cpp index 37c23566d..7fea6be06 100644 --- a/src/modules/m_censor.cpp +++ b/src/modules/m_censor.cpp @@ -193,28 +193,4 @@ class ModuleCensor : public Module }; -// stuff down here is the module-factory stuff. For basic modules you can ignore this. - -class ModuleCensorFactory : public ModuleFactory -{ - public: - ModuleCensorFactory() - { - } - - ~ModuleCensorFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleCensor(Me); - } - -}; - - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleCensorFactory; -} +MODULE_INIT(ModuleCensor); -- cgit v1.2.3