summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_timedbans.cpp24
-rw-r--r--src/modules/m_tline.cpp25
-rw-r--r--src/modules/m_uhnames.cpp24
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);