summaryrefslogtreecommitdiff
path: root/src/modules/m_restrictbanned.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 18:18:16 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 18:18:16 +0000
commit0ae5c96c69702adec4197403a4ee347d7be92078 (patch)
treea31728b8024ca2cbdb5f4d1f30905e8c2bc1fb07 /src/modules/m_restrictbanned.cpp
parentafa437fc03e69bbaea948a48235ff35c1430418c (diff)
restrictbanned: Allow changes to UID
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7903 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_restrictbanned.cpp')
-rw-r--r--src/modules/m_restrictbanned.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/m_restrictbanned.cpp b/src/modules/m_restrictbanned.cpp
index 01245b505..a5ab337ad 100644
--- a/src/modules/m_restrictbanned.cpp
+++ b/src/modules/m_restrictbanned.cpp
@@ -59,6 +59,10 @@ class ModuleRestrictBanned : public Module
if (!IS_LOCAL(user))
return 0;
+ /* Allow changes to UID */
+ if (isdigit(newnick[0]))
+ return 0;
+
/* bit of a special case. */
for (UCListIter i = user->chans.begin(); i != user->chans.end(); i++)
{