X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_showwhois.cpp;h=c16135679e9c667dd041600496e8f6543a1a6f33;hb=ea7aa89d61f5090ee7e7ecbe9eb633e1189ce40a;hp=e19eddb1e8621af322261299a9c39236d9fd72f9;hpb=fc4135dba610f97727e253ba695a5b36a761aac0;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_showwhois.cpp b/src/modules/m_showwhois.cpp index e19eddb1e..c16135679 100644 --- a/src/modules/m_showwhois.cpp +++ b/src/modules/m_showwhois.cpp @@ -9,20 +9,20 @@ using namespace std; /* $ModDesc: Allows opers to set +W to see when a user uses WHOIS on them */ -Server *Srv; - class ModuleShowwhois : public Module { + Server* Srv; + public: - ModuleShowwhois() + ModuleShowwhois(Server* Me) + : Module::Module(Me) { - Srv = new Server; + Srv = Me; Srv->AddExtendedMode('W',MT_CLIENT,true,0,0); } ~ModuleShowwhois() { - delete Srv; } virtual Version GetVersion() @@ -61,9 +61,9 @@ class ModuleShowwhoisFactory : public ModuleFactory { } - virtual Module* CreateModule() + virtual Module* CreateModule(Server* Me) { - return new ModuleShowwhois; + return new ModuleShowwhois(Me); } };