]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_showwhois.cpp
Wahhhhhhhhhhhh bwahahaha. Mass commit to tidy up tons of messy include lists
[user/henk/code/inspircd.git] / src / modules / m_showwhois.cpp
index 33f59e756799d71689dc160c1372064553ecb8e7..0719a93f83a7641843e5d8b68e60e3ad143ef863 100644 (file)
@@ -6,12 +6,12 @@ using namespace std;
 #include "users.h"
 #include "channels.h"
 #include "modules.h"
-#include "helperfuncs.h"
+
 #include "inspircd.h"
 
 /* $ModDesc: Allows opers to set +W to see when a user uses WHOIS on them */
 
-extern InspIRCd* ServerInstance;
+
 
 class SeeWhois : public ModeHandler
 {
@@ -47,16 +47,16 @@ class SeeWhois : public ModeHandler
 
 class ModuleShowwhois : public Module
 {
-       Server* Srv;
+       
        SeeWhois* sw;
 
  public:
 
-       ModuleShowwhois(Server* Me) : Module::Module(Me)
+       ModuleShowwhois(InspIRCd* Me) : Module::Module(Me)
        {
-               Srv = Me;
+               
                sw = new SeeWhois(ServerInstance);
-               Srv->AddMode(sw, 'W');
+               ServerInstance->AddMode(sw, 'W');
        }
 
        ~ModuleShowwhois()
@@ -95,7 +95,7 @@ class ModuleShowwhoisFactory : public ModuleFactory
                {
                }
 
-               virtual Module* CreateModule(Server* Me)
+               virtual Module* CreateModule(InspIRCd* Me)
                {
                        return new ModuleShowwhois(Me);
                }