summaryrefslogtreecommitdiff
path: root/src/modules/m_nicklock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_nicklock.cpp')
-rw-r--r--src/modules/m_nicklock.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_nicklock.cpp b/src/modules/m_nicklock.cpp
index 357a3f9b1..731c0433d 100644
--- a/src/modules/m_nicklock.cpp
+++ b/src/modules/m_nicklock.cpp
@@ -129,6 +129,9 @@ class ModuleNickLock : public Module
virtual int OnUserPreNick(userrec* user, const std::string &newnick)
{
+ if (isdigit(newnick[0])) /* allow a switch to a UID */
+ return 0;
+
if (user->GetExt("nick_locked", n))
{
user->WriteServ("447 %s :You cannot change your nickname (your nick is locked)",user->nick);