summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-02-04 13:07:43 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-02-04 13:07:43 +0000
commit821cdf4b1066ad5788ece5757e78a323191488ed (patch)
treeccc94512995b7b8a60c245c2db5bad946a8892bc /src/modules
parentd8b04f5ea773340dc52d3728521c21829e0136ca (diff)
Prioritize nicklock before nickflood, so nickflood does not erroneously count changes that nicklock blocks. Fixes bug #687, reported by Ankit.
TODO: split OnUserPreNick into OnCanChangeNick, to determine whether or not a user may strictly change nick or not? git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11030 e03df62e-2008-0410-955e-edbf42e46eb7
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)