summaryrefslogtreecommitdiff
path: root/src/modules/m_userip.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_userip.cpp')
-rw-r--r--src/modules/m_userip.cpp26
1 files changed, 1 insertions, 25 deletions
diff --git a/src/modules/m_userip.cpp b/src/modules/m_userip.cpp
index 29b1eb5fa..64111da07 100644
--- a/src/modules/m_userip.cpp
+++ b/src/modules/m_userip.cpp
@@ -82,29 +82,5 @@ class ModuleUserIP : public Module
};
-// stuff down here is the module-factory stuff. For basic modules you can ignore this.
-
-class ModuleUserIPFactory : public ModuleFactory
-{
- public:
- ModuleUserIPFactory()
- {
- }
-
- ~ModuleUserIPFactory()
- {
- }
-
- virtual Module * CreateModule(InspIRCd* Me)
- {
- return new ModuleUserIP(Me);
- }
-
-};
-
-
-extern "C" DllExport void * init_module( void )
-{
- return new ModuleUserIPFactory;
-}
+MODULE_INIT(ModuleUserIP);