#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
{
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()
{
}
- virtual Module* CreateModule(Server* Me)
+ virtual Module* CreateModule(InspIRCd* Me)
{
return new ModuleShowwhois(Me);
}