diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_httpd_stats.cpp | 24 | ||||
-rw-r--r-- | src/modules/m_ident.cpp | 25 | ||||
-rw-r--r-- | src/modules/m_invisible.cpp | 24 | ||||
-rw-r--r-- | src/modules/m_inviteexception.cpp | 25 |
4 files changed, 4 insertions, 94 deletions
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); |