summaryrefslogtreecommitdiff
path: root/src/modules/m_noctcp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_noctcp.cpp')
-rw-r--r--src/modules/m_noctcp.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_noctcp.cpp b/src/modules/m_noctcp.cpp
index 72fb4858c..2dd249559 100644
--- a/src/modules/m_noctcp.cpp
+++ b/src/modules/m_noctcp.cpp
@@ -30,9 +30,10 @@ class ModuleNoCTCP : public Module
public:
- ModuleNoCTCP()
+ ModuleNoCTCP(Server* Me)
+ : Module::Module(Me)
{
- Srv = new Server;
+ Srv = Me;
Srv->AddExtendedMode('C',MT_CHANNEL,false,0,0);
}
@@ -111,7 +112,6 @@ class ModuleNoCTCP : public Module
virtual ~ModuleNoCTCP()
{
- delete Srv;
}
virtual Version GetVersion()
@@ -132,9 +132,9 @@ class ModuleNoCTCPFactory : public ModuleFactory
{
}
- virtual Module * CreateModule()
+ virtual Module * CreateModule(Server* Me)
{
- return new ModuleNoCTCP;
+ return new ModuleNoCTCP(Me);
}
};