diff options
Diffstat (limited to 'src/modules/m_antibottler.cpp')
-rw-r--r-- | src/modules/m_antibottler.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_antibottler.cpp b/src/modules/m_antibottler.cpp index 8c456bdfb..8b11c80c5 100644 --- a/src/modules/m_antibottler.cpp +++ b/src/modules/m_antibottler.cpp @@ -27,14 +27,14 @@ class ModuleAntiBottler : public Module Server *Srv; public: - ModuleAntiBottler() + ModuleAntiBottler(Server* Me) + : Module::Module(Me) { - Srv = new Server; + Srv = Me; } virtual ~ModuleAntiBottler() { - delete Srv; } virtual Version GetVersion() @@ -102,9 +102,9 @@ class ModuleAntiBottlerFactory : public ModuleFactory { } - virtual Module * CreateModule() + virtual Module * CreateModule(Server* Me) { - return new ModuleAntiBottler; + return new ModuleAntiBottler(Me); } }; |