From d523f0d4995548ad6d0a21a978c320dab047eb62 Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 17 Jun 2007 13:33:44 +0000 Subject: Conversions git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7355 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_httpd_stats.cpp | 24 +----------------------- src/modules/m_ident.cpp | 25 +------------------------ src/modules/m_invisible.cpp | 24 +----------------------- src/modules/m_inviteexception.cpp | 25 +------------------------ 4 files changed, 4 insertions(+), 94 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp index 57b0a6e27..491c5fd47 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -238,26 +238,4 @@ class ModuleHttpStats : public Module } }; - -class ModuleHttpStatsFactory : public ModuleFactory -{ - public: - ModuleHttpStatsFactory() - { - } - - ~ModuleHttpStatsFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleHttpStats(Me); - } -}; - - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleHttpStatsFactory; -} +MODULE_INIT(ModuleHttpStats); diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index eb9f3f365..481d75067 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -323,27 +323,4 @@ class ModuleIdent : public Module }; -class ModuleIdentFactory : public ModuleFactory -{ - public: - ModuleIdentFactory() - { - } - - ~ModuleIdentFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleIdent(Me); - } - -}; - - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleIdentFactory; -} - +MODULE_INIT(ModuleIdent); diff --git a/src/modules/m_invisible.cpp b/src/modules/m_invisible.cpp index 96bc705b3..47f950e71 100644 --- a/src/modules/m_invisible.cpp +++ b/src/modules/m_invisible.cpp @@ -274,26 +274,4 @@ class ModuleInvisible : public Module }; -class ModuleInvisibleFactory : public ModuleFactory -{ - public: - ModuleInvisibleFactory() - { - } - - ~ModuleInvisibleFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleInvisible(Me); - } - -}; - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleInvisibleFactory; -} - +MODULE_INIT(ModuleInvisible); diff --git a/src/modules/m_inviteexception.cpp b/src/modules/m_inviteexception.cpp index 11add8046..042d374bc 100644 --- a/src/modules/m_inviteexception.cpp +++ b/src/modules/m_inviteexception.cpp @@ -147,27 +147,4 @@ public: } }; - -class ModuleInviteExceptionFactory : public ModuleFactory -{ - public: - ModuleInviteExceptionFactory() - { - } - - ~ModuleInviteExceptionFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleInviteException(Me); - } - -}; - - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleInviteExceptionFactory; -} +MODULE_INIT(ModuleInviteException); -- cgit v1.2.3