nickflood: Allow changes to UID

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7905 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
w00t 2007-08-27 18:22:10 +00:00
parent fb6fa4c48e
commit 0600e5bc14

View File

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