summaryrefslogtreecommitdiff
path: root/src/modules/m_nickflood.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-24 22:31:04 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-24 22:31:04 +0000
commit4599328e31c71958e0c3086980d1470859307b10 (patch)
treea90d93b81d0af455f0f6d64a9f2b2a2b7aaa5f7f /src/modules/m_nickflood.cpp
parent18f75b32d5d4b456496e65c3d472567bc02e6e17 (diff)
Allow nick locking to prevent voluntary changes to UID
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12322 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_nickflood.cpp')
-rw-r--r--src/modules/m_nickflood.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_nickflood.cpp b/src/modules/m_nickflood.cpp
index e4f12c7bc..47c8bc836 100644
--- a/src/modules/m_nickflood.cpp
+++ b/src/modules/m_nickflood.cpp
@@ -198,7 +198,7 @@ class ModuleNickFlood : public Module
ModResult OnUserPreNick(User* user, const std::string &newnick)
{
- if (isdigit(newnick[0])) /* allow switches to UID */
+ if (ServerInstance->NICKForced.get(user)) /* Allow forced nick changes */
return MOD_RES_PASSTHRU;
for (UCListIter i = user->chans.begin(); i != user->chans.end(); i++)