summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_nicklock.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/m_nicklock.cpp b/src/modules/m_nicklock.cpp
index 40965ffe0..091d3e3d1 100644
--- a/src/modules/m_nicklock.cpp
+++ b/src/modules/m_nicklock.cpp
@@ -147,6 +147,12 @@ class ModuleNickLock : public Module
user->Shrink("nick_locked");
}
+ void Prioritize()
+ {
+ Module *nflood = ServerInstance->Modules->Find("m_nickflood.so");
+ ServerInstance->Modules->SetPriority(this, I_OnUserPreJoin, PRIO_BEFORE, &nflood);
+ }
+
virtual void OnCleanup(int target_type, void* item)
{
if(target_type == TYPE_USER)