summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 18:22:10 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 18:22:10 +0000
commit0600e5bc14e16606da22e191ab84ffe094d67cd9 (patch)
tree092764d2bc838b00f5b52f729205a37f162fdf3a /src
parentfb6fa4c48e5fd0e0f068e8c31f977e64a4264b11 (diff)
nickflood: Allow changes to UID
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7905 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_nickflood.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_nickflood.cpp b/src/modules/m_nickflood.cpp
index c5ba4065b..e8e25fe52 100644
--- a/src/modules/m_nickflood.cpp
+++ b/src/modules/m_nickflood.cpp
@@ -221,6 +221,9 @@ class ModuleNickFlood : public Module
virtual int OnUserPreNick(userrec* user, const std::string &newnick)
{
+ if (isdigit(newnick[0])) /* allow switches to UID */
+ return 0;
+
for (UCListIter i = user->chans.begin(); i != user->chans.end(); i++)
{
chanrec *channel = i->first;