diff options
Diffstat (limited to 'src/modules/extra/m_sqlauth.cpp')
-rw-r--r-- | src/modules/extra/m_sqlauth.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/extra/m_sqlauth.cpp b/src/modules/extra/m_sqlauth.cpp index e1c0929c4..1faf2c0d7 100644 --- a/src/modules/extra/m_sqlauth.cpp +++ b/src/modules/extra/m_sqlauth.cpp @@ -72,9 +72,10 @@ class ModuleSQLAuth : public Module return (SQLModule); } - ModuleSQLAuth() + ModuleSQLAuth(Server* Me) + : Module::Module(Me) { - Srv = new Server; + Srv = Me; ReadConfig(); } @@ -170,7 +171,6 @@ class ModuleSQLAuth : public Module virtual ~ModuleSQLAuth() { - delete Srv; } virtual Version GetVersion() @@ -191,9 +191,9 @@ class ModuleSQLAuthFactory : public ModuleFactory { } - virtual Module * CreateModule() + virtual Module * CreateModule(Server* Me) { - return new ModuleSQLAuth; + return new ModuleSQLAuth(Me); } }; |