summaryrefslogtreecommitdiff
path: root/src/modules/m_knock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_knock.cpp')
-rw-r--r--src/modules/m_knock.cpp27
1 files changed, 1 insertions, 26 deletions
diff --git a/src/modules/m_knock.cpp b/src/modules/m_knock.cpp
index 075064554..fa54e08c7 100644
--- a/src/modules/m_knock.cpp
+++ b/src/modules/m_knock.cpp
@@ -126,29 +126,4 @@ class ModuleKnock : public Module
}
};
-// stuff down here is the module-factory stuff. For basic modules you can ignore this.
-
-class ModuleKnockFactory : public ModuleFactory
-{
- public:
- ModuleKnockFactory()
- {
- }
-
- ~ModuleKnockFactory()
- {
- }
-
- virtual Module * CreateModule(InspIRCd* Me)
- {
- return new ModuleKnock(Me);
- }
-
-};
-
-
-extern "C" DllExport void * init_module( void )
-{
- return new ModuleKnockFactory;
-}
-
+MODULE_INIT(ModuleKnock);