summaryrefslogtreecommitdiff
path: root/src/modules/m_nickflood.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_nickflood.cpp')
-rw-r--r--src/modules/m_nickflood.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/m_nickflood.cpp b/src/modules/m_nickflood.cpp
index 181bbaa4c..7e5e6b2c5 100644
--- a/src/modules/m_nickflood.cpp
+++ b/src/modules/m_nickflood.cpp
@@ -217,6 +217,8 @@ class ModuleNickFlood : public Module
jf = new NickFlood(ServerInstance);
if (!ServerInstance->AddMode(jf))
throw ModuleException("Could not add new modes!");
+ Implementation eventlist[] = { I_OnChannelDelete, I_OnUserPreNick };
+ ServerInstance->Modules->Attach(eventlist, this, 2);
}
virtual int OnUserPreNick(User* user, const std::string &newnick)