diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-27 18:17:10 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-27 18:17:10 +0000 |
commit | afa437fc03e69bbaea948a48235ff35c1430418c (patch) | |
tree | d8b300ba35cc1d2b4ec30ca648744deeba350611 /src/modules | |
parent | ae30e67a0543a8f09202e03b7a07912f88c8edcb (diff) |
nonicks: allow switches to UID, so we don't get loads of unnecessary kills on collides/svsnick
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7902 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_nonicks.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_nonicks.cpp b/src/modules/m_nonicks.cpp index da5003f83..3adc9e160 100644 --- a/src/modules/m_nonicks.cpp +++ b/src/modules/m_nonicks.cpp @@ -75,6 +75,9 @@ class ModuleNoNickChange : public Module { if (IS_LOCAL(user)) { + if (isdigit(newnick[0])) /* don't even think about touching a switch to uid! */ + return 0; + for (UCListIter i = user->chans.begin(); i != user->chans.end(); i++) { chanrec* curr = i->first; |