summaryrefslogtreecommitdiff
path: root/src/modules/m_denychans.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_denychans.cpp')
-rw-r--r--src/modules/m_denychans.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_denychans.cpp b/src/modules/m_denychans.cpp
index 154141d6d..ab0c3616f 100644
--- a/src/modules/m_denychans.cpp
+++ b/src/modules/m_denychans.cpp
@@ -33,16 +33,16 @@ class ModuleDenyChannels : public Module
ConfigReader *Conf;
public:
- ModuleDenyChannels()
+ ModuleDenyChannels(Server* Me)
+ : Module::Module(Me)
{
- Srv = new Server;
+ Srv = Me;
Conf = new ConfigReader;
}
virtual ~ModuleDenyChannels()
{
delete Conf;
- delete Srv;
}
virtual Version GetVersion()
@@ -87,9 +87,9 @@ class ModuleDenyChannelsFactory : public ModuleFactory
{
}
- virtual Module * CreateModule()
+ virtual Module * CreateModule(Server* Me)
{
- return new ModuleDenyChannels;
+ return new ModuleDenyChannels(Me);
}
};