*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides channel mode +F (nick flood protection) */
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;