diff options
Diffstat (limited to 'src/modules/m_nonotice.cpp')
-rw-r--r-- | src/modules/m_nonotice.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_nonotice.cpp b/src/modules/m_nonotice.cpp index 563b94b12..ceb659985 100644 --- a/src/modules/m_nonotice.cpp +++ b/src/modules/m_nonotice.cpp @@ -29,9 +29,10 @@ class ModuleNoNotice : public Module Server *Srv; public: - ModuleNoNotice() + ModuleNoNotice(Server* Me) + : Module::Module(Me) { - Srv = new Server; + Srv = Me; Srv->AddExtendedMode('T',MT_CHANNEL,false,0,0); } @@ -91,7 +92,6 @@ class ModuleNoNotice : public Module virtual ~ModuleNoNotice() { - delete Srv; } virtual Version GetVersion() @@ -112,9 +112,9 @@ class ModuleNoNoticeFactory : public ModuleFactory { } - virtual Module * CreateModule() + virtual Module * CreateModule(Server* Me) { - return new ModuleNoNotice; + return new ModuleNoNotice(Me); } }; |