diff options
Diffstat (limited to 'src/modules/m_ident.cpp')
-rw-r--r-- | src/modules/m_ident.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index a46d931d8..c55c51499 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -263,9 +263,10 @@ class ModuleIdent : public Module delete Conf; } - ModuleIdent() + ModuleIdent(Server* Me) + : Module::Module(Me) { - Srv = new Server; + Srv = Me; ReadSettings(); } @@ -334,7 +335,6 @@ class ModuleIdent : public Module virtual ~ModuleIdent() { - delete Srv; } virtual Version GetVersion() @@ -355,9 +355,9 @@ class ModuleIdentFactory : public ModuleFactory { } - virtual Module * CreateModule() + virtual Module * CreateModule(Server* Me) { - return new ModuleIdent; + return new ModuleIdent(Me); } }; |