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.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;