]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nickflood.cpp
PROPAGATE this fix
[user/henk/code/inspircd.git] / src / modules / m_nickflood.cpp
index 4799bd4efaf758ec9b63130c1869607508b3d97a..e8e25fe524dd7dd3ab3cf6a6ec9fae870469fe7f 100644 (file)
@@ -12,9 +12,6 @@
  */
 
 #include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
 
 /* $ModDesc: Provides channel mode +F (nick flood protection) */
 
@@ -224,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;