summaryrefslogtreecommitdiff
path: root/src/modules/m_nonicks.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_nonicks.cpp')
-rw-r--r--src/modules/m_nonicks.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_nonicks.cpp b/src/modules/m_nonicks.cpp
index 7b134b71e..1e8b7ccf9 100644
--- a/src/modules/m_nonicks.cpp
+++ b/src/modules/m_nonicks.cpp
@@ -33,7 +33,7 @@ extern InspIRCd* ServerInstance;
class NoNicks : public ModeHandler
{
public:
- NoNicks() : ModeHandler('N', 0, 0, false, MODETYPE_CHANNEL, false) { }
+ NoNicks(InspIRCd* Instance) : ModeHandler(Instance, 'N', 0, 0, false, MODETYPE_CHANNEL, false) { }
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string &parameter, bool adding)
{
@@ -68,7 +68,7 @@ class ModuleNoNickChange : public Module
: Module::Module(Me)
{
Srv = Me;
- nn = new NoNicks();
+ nn = new NoNicks(ServerInstance);
Srv->AddMode(nn, 'N');
}