From 484a50996008239ce69a89d6639bdcd1318cd54f Mon Sep 17 00:00:00 2001 From: special Date: Fri, 2 Feb 2007 06:22:29 +0000 Subject: Fixed a bug in m_connflood that caused the bootwait value to have no effect git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6478 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_connflood.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/modules/m_connflood.cpp b/src/modules/m_connflood.cpp index 40d64520f..c834605b0 100644 --- a/src/modules/m_connflood.cpp +++ b/src/modules/m_connflood.cpp @@ -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; -- cgit v1.2.3