]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_connflood.cpp
To be more specific, specify rpath() macro here
[user/henk/code/inspircd.git] / src / modules / m_connflood.cpp
index 40d64520f73b13818d01be9984a4b156c5c2eedc..c834605b0622419790586676f3269c1ad03be4ef 100644 (file)
@@ -70,9 +70,10 @@ public:
        virtual int OnUserRegister(userrec* user)
        {
                time_t next = ServerInstance->Time();
-               if (!first)
-                       first = next - boot_wait;
-
+               
+               if ((ServerInstance->startup_time + boot_wait) > next)
+                       return 0;
+               
                /* time difference between first and latest connection */
                time_t tdiff = next - first;