diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-17 13:13:38 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-17 13:13:38 +0000 |
commit | bfdf503e5204ba17479084e688a3605dbc9007a2 (patch) | |
tree | 17add23cbf6d9f29d21d5ab6cd1727e98af821f9 | |
parent | 61db2bd6670445b282472b526b9b247921e63d1d (diff) |
Convert more modules
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7347 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_auditorium.cpp | 24 | ||||
-rw-r--r-- | src/modules/m_banexception.cpp | 24 | ||||
-rw-r--r-- | src/modules/m_banredirect.cpp | 24 | ||||
-rw-r--r-- | src/modules/m_blockamsg.cpp | 23 | ||||
-rw-r--r-- | src/modules/m_blockcaps.cpp | 25 |
5 files changed, 5 insertions, 115 deletions
diff --git a/src/modules/m_auditorium.cpp b/src/modules/m_auditorium.cpp index 8d73f94f0..20168aff5 100644 --- a/src/modules/m_auditorium.cpp +++ b/src/modules/m_auditorium.cpp @@ -188,26 +188,4 @@ class ModuleAuditorium : public Module } }; -class ModuleAuditoriumFactory : public ModuleFactory -{ - public: - ModuleAuditoriumFactory() - { - } - - ~ModuleAuditoriumFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleAuditorium(Me); - } - -}; - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleAuditoriumFactory; -} - +MODULE_INIT(ModuleAuditorium); diff --git a/src/modules/m_banexception.cpp b/src/modules/m_banexception.cpp index 5dd406e54..9cb5d0662 100644 --- a/src/modules/m_banexception.cpp +++ b/src/modules/m_banexception.cpp @@ -150,26 +150,4 @@ public: } }; -class ModuleBanExceptionFactory : public ModuleFactory -{ - public: - ModuleBanExceptionFactory() - { - } - - ~ModuleBanExceptionFactory() - { - } - - virtual Module* CreateModule(InspIRCd* Me) - { - return new ModuleBanException(Me); - } -}; - - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleBanExceptionFactory; -} - +MODULE_INIT(ModuleBanException); diff --git a/src/modules/m_banredirect.cpp b/src/modules/m_banredirect.cpp index 7ed690e13..06b9484c6 100644 --- a/src/modules/m_banredirect.cpp +++ b/src/modules/m_banredirect.cpp @@ -340,26 +340,4 @@ class ModuleBanRedirect : public Module }; -class ModuleBanRedirectFactory : public ModuleFactory -{ - public: - ModuleBanRedirectFactory() - { - } - - ~ModuleBanRedirectFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleBanRedirect(Me); - } - -}; - - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleBanRedirectFactory; -} +MODULE_INIT(ModuleBanRedirect); diff --git a/src/modules/m_blockamsg.cpp b/src/modules/m_blockamsg.cpp index 1724f0e5f..0164590be 100644 --- a/src/modules/m_blockamsg.cpp +++ b/src/modules/m_blockamsg.cpp @@ -188,25 +188,4 @@ class ModuleBlockAmsg : public Module }; -class ModuleBlockAmsgFactory : public ModuleFactory -{ - public: - ModuleBlockAmsgFactory() - { - } - - ~ModuleBlockAmsgFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleBlockAmsg(Me); - } -}; - - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleBlockAmsgFactory; -} +MODULE_INIT(ModuleBlockAmsg); diff --git a/src/modules/m_blockcaps.cpp b/src/modules/m_blockcaps.cpp index 2f5807c53..c07575d32 100644 --- a/src/modules/m_blockcaps.cpp +++ b/src/modules/m_blockcaps.cpp @@ -140,27 +140,4 @@ public: } }; - -class ModuleBlockCAPSFactory : public ModuleFactory -{ - public: - ModuleBlockCAPSFactory() - { - } - - ~ModuleBlockCAPSFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleBlockCAPS(Me); - } - -}; - - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleBlockCAPSFactory; -} +MODULE_INIT(ModuleBlockCAPS); |