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
This commit is contained in:
w00t 2007-08-27 18:17:10 +00:00
parent ae30e67a05
commit afa437fc03

View File

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