summaryrefslogtreecommitdiff
path: root/src/modules/m_noinvite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_noinvite.cpp')
-rw-r--r--src/modules/m_noinvite.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_noinvite.cpp b/src/modules/m_noinvite.cpp
index 1d14f1c9b..1481f5f03 100644
--- a/src/modules/m_noinvite.cpp
+++ b/src/modules/m_noinvite.cpp
@@ -30,7 +30,7 @@ extern InspIRCd* ServerInstance;
class NoInvite : public ModeHandler
{
public:
- NoInvite() : ModeHandler('V', 0, 0, false, MODETYPE_CHANNEL, false) { }
+ NoInvite(InspIRCd* Instance) : ModeHandler(Instance, 'V', 0, 0, false, MODETYPE_CHANNEL, false) { }
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string &parameter, bool adding)
{
@@ -65,7 +65,7 @@ class ModuleNoInvite : public Module
ModuleNoInvite(Server* Me) : Module::Module(Me)
{
Srv = Me;
- ni = new NoInvite();
+ ni = new NoInvite(ServerInstance);
Srv->AddMode(ni, 'V');
}