diff options
Diffstat (limited to 'src/modules/m_operlevels.cpp')
-rw-r--r-- | src/modules/m_operlevels.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_operlevels.cpp b/src/modules/m_operlevels.cpp index b51655592..54d111440 100644 --- a/src/modules/m_operlevels.cpp +++ b/src/modules/m_operlevels.cpp @@ -19,16 +19,16 @@ class ModuleOperLevels : public Module public: - ModuleOperLevels() + ModuleOperLevels(Server* Me) + : Module::Module(Me) { - Srv = new Server; + Srv = Me; conf = new ConfigReader; } virtual ~ModuleOperLevels() { - delete Srv; delete conf; } @@ -91,9 +91,9 @@ class ModuleOperLevelsFactory : public ModuleFactory { } - virtual Module * CreateModule() + virtual Module * CreateModule(Server* Me) { - return new ModuleOperLevels; + return new ModuleOperLevels(Me); } }; |