summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-17 13:12:13 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-17 13:12:13 +0000
commitc366e5d2723e5283547639bef8c50ffdc53cca20 (patch)
tree56f50d8f531d68071927063430003e2ad03560b3
parentb68f64cf6ae64f220fbb91d26c0fd2ffb8ee402a (diff)
More
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7345 e03df62e-2008-0410-955e-edbf42e46eb7
-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);