summaryrefslogtreecommitdiff
path: root/src/modules/m_alias.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_alias.cpp')
-rw-r--r--src/modules/m_alias.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp
index 6eda35f13..e0c202eed 100644
--- a/src/modules/m_alias.cpp
+++ b/src/modules/m_alias.cpp
@@ -63,17 +63,16 @@ class ModuleAlias : public Module
public:
- ModuleAlias()
+ ModuleAlias(Server* Me)
+ : Module::Module(Me)
{
- Srv = new Server;
+ Srv = Me;
MyConf = new ConfigReader;
-
ReadAliases();
}
virtual ~ModuleAlias()
{
- delete Srv;
delete MyConf;
}
@@ -156,9 +155,9 @@ class ModuleAliasFactory : public ModuleFactory
{
}
- virtual Module * CreateModule()
+ virtual Module * CreateModule(Server* Me)
{
- return new ModuleAlias;
+ return new ModuleAlias(Me);
}
};