mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-11 11:39:02 -04:00
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:
parent
fb6fa4c48e
commit
0600e5bc14
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user