From c366e5d2723e5283547639bef8c50ffdc53cca20 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 17 Jun 2007 13:12:13 +0000 Subject: More git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7345 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_timedbans.cpp | 24 +----------------------- src/modules/m_tline.cpp | 25 +------------------------ src/modules/m_uhnames.cpp | 24 +----------------------- 3 files changed, 3 insertions(+), 70 deletions(-) diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index 2f57a966c..995bf2147 100644 --- a/src/modules/m_timedbans.cpp +++ b/src/modules/m_timedbans.cpp @@ -200,27 +200,5 @@ class ModuleTimedBans : public Module } }; +MODULE_INIT(ModuleTimedBans); -class ModuleTimedBansFactory : public ModuleFactory -{ - public: - ModuleTimedBansFactory() - { - } - - ~ModuleTimedBansFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleTimedBans(Me); - } - -}; - - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleTimedBansFactory; -} diff --git a/src/modules/m_tline.cpp b/src/modules/m_tline.cpp index 37437b5fd..39cd2b0aa 100644 --- a/src/modules/m_tline.cpp +++ b/src/modules/m_tline.cpp @@ -92,28 +92,5 @@ class ModuleTLine : public Module } }; - -class ModuleTLineFactory : public ModuleFactory -{ - public: - ModuleTLineFactory() - { - } - - ~ModuleTLineFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleTLine(Me); - } - -}; - - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleTLineFactory; -} +MODULE_INIT(ModuleTLine); diff --git a/src/modules/m_uhnames.cpp b/src/modules/m_uhnames.cpp index 3bcfdd2dd..376e1d7d2 100644 --- a/src/modules/m_uhnames.cpp +++ b/src/modules/m_uhnames.cpp @@ -94,27 +94,5 @@ class ModuleUHNames : public Module } }; - -class ModuleUHNamesFactory : public ModuleFactory -{ - public: - ModuleUHNamesFactory() - { - } - - ~ModuleUHNamesFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleUHNames(Me); - } -}; - - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleUHNamesFactory; -} +MODULE_INIT(ModuleUHNames); -- cgit v1.2.3