summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-17 13:52:07 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-17 13:52:07 +0000
commite1e26809c438ca8ff685fc4ddea9157078609a7b (patch)
tree0556d2f4d8ed16dfbe3f0102a5110621e59a7f5e
parent65774100a356b4b90e1cac7bd41046aa661ef850 (diff)
Conversions..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7364 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_securelist.cpp27
-rw-r--r--src/modules/m_seenicks.cpp25
-rw-r--r--src/modules/m_services.cpp25
-rw-r--r--src/modules/m_services_account.cpp25
4 files changed, 4 insertions, 98 deletions
diff --git a/src/modules/m_securelist.cpp b/src/modules/m_securelist.cpp
index d98870425..18a7eab8d 100644
--- a/src/modules/m_securelist.cpp
+++ b/src/modules/m_securelist.cpp
@@ -94,29 +94,4 @@ class ModuleSecureList : public Module
};
-
-
-/******************************************************************************************************/
-
-class ModuleSecureListFactory : public ModuleFactory
-{
- public:
- ModuleSecureListFactory()
- {
- }
-
- ~ModuleSecureListFactory()
- {
- }
-
- virtual Module * CreateModule(InspIRCd* Me)
- {
- return new ModuleSecureList(Me);
- }
-
-};
-
-extern "C" DllExport void * init_module( void )
-{
- return new ModuleSecureListFactory;
-}
+MODULE_INIT(ModuleSecureList);
diff --git a/src/modules/m_seenicks.cpp b/src/modules/m_seenicks.cpp
index e472e60bb..5aa0f9069 100644
--- a/src/modules/m_seenicks.cpp
+++ b/src/modules/m_seenicks.cpp
@@ -52,27 +52,4 @@ class ModuleSeeNicks : public Module
}
};
-class ModuleSeeNicksFactory : public ModuleFactory
-{
- public:
- ModuleSeeNicksFactory()
- {
- }
-
- ~ModuleSeeNicksFactory()
- {
- }
-
- virtual Module * CreateModule(InspIRCd* Me)
- {
- return new ModuleSeeNicks(Me);
- }
-
-};
-
-
-extern "C" DllExport void * init_module( void )
-{
- return new ModuleSeeNicksFactory;
-}
-
+MODULE_INIT(ModuleSeeNicks);
diff --git a/src/modules/m_services.cpp b/src/modules/m_services.cpp
index 0e5c6b588..7f13918f5 100644
--- a/src/modules/m_services.cpp
+++ b/src/modules/m_services.cpp
@@ -307,27 +307,4 @@ class ModuleServices : public Module
};
-class ModuleServicesFactory : public ModuleFactory
-{
- public:
- ModuleServicesFactory()
- {
- }
-
- ~ModuleServicesFactory()
- {
- }
-
- virtual Module * CreateModule(InspIRCd* Me)
- {
- return new ModuleServices(Me);
- }
-
-};
-
-
-extern "C" DllExport void * init_module( void )
-{
- return new ModuleServicesFactory;
-}
-
+MODULE_INIT(ModuleServices);
diff --git a/src/modules/m_services_account.cpp b/src/modules/m_services_account.cpp
index 27d9b335e..d9352964a 100644
--- a/src/modules/m_services_account.cpp
+++ b/src/modules/m_services_account.cpp
@@ -329,27 +329,4 @@ class ModuleServicesAccount : public Module
}
};
-
-class ModuleServicesAccountFactory : public ModuleFactory
-{
- public:
- ModuleServicesAccountFactory()
- {
- }
-
- ~ModuleServicesAccountFactory()
- {
- }
-
- virtual Module * CreateModule(InspIRCd* Me)
- {
- return new ModuleServicesAccount(Me);
- }
-
-};
-
-
-extern "C" DllExport void * init_module( void )
-{
- return new ModuleServicesAccountFactory;
-}
+MODULE_INIT(ModuleServicesAccount);