summaryrefslogtreecommitdiff
path: root/src/modules/m_showwhois.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_showwhois.cpp')
-rw-r--r--src/modules/m_showwhois.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/m_showwhois.cpp b/src/modules/m_showwhois.cpp
index 1343e665f..33f59e756 100644
--- a/src/modules/m_showwhois.cpp
+++ b/src/modules/m_showwhois.cpp
@@ -11,10 +11,12 @@ using namespace std;
/* $ModDesc: Allows opers to set +W to see when a user uses WHOIS on them */
+extern InspIRCd* ServerInstance;
+
class SeeWhois : public ModeHandler
{
public:
- SeeWhois() : ModeHandler('W', 0, 0, false, MODETYPE_CHANNEL, false) { }
+ SeeWhois(InspIRCd* Instance) : ModeHandler(Instance, 'W', 0, 0, false, MODETYPE_CHANNEL, false) { }
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string &parameter, bool adding)
{
@@ -53,7 +55,7 @@ class ModuleShowwhois : public Module
ModuleShowwhois(Server* Me) : Module::Module(Me)
{
Srv = Me;
- sw = new SeeWhois();
+ sw = new SeeWhois(ServerInstance);
Srv->AddMode(sw, 'W');
}