From 59c81b058084260c201938672d69cc6245a25301 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 24 Jan 2006 16:36:56 +0000 Subject: Swapped around params to make this work git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2879 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_joinflood.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/m_joinflood.cpp b/src/modules/m_joinflood.cpp index 8d0716d22..a15c48bc9 100644 --- a/src/modules/m_joinflood.cpp +++ b/src/modules/m_joinflood.cpp @@ -48,8 +48,10 @@ class joinfloodsettings void addjoin() { counter++; + log(DEBUG,"joinflood counter is %d",counter); if (time(NULL) > reset) { + log(DEBUG,"joinflood counter reset"); counter = 0; reset = time(NULL) + secs; } @@ -62,6 +64,7 @@ class joinfloodsettings void clear() { + log(DEBUG,"joinflood counter clear"); counter = 0; } @@ -84,6 +87,7 @@ class joinfloodsettings void lock() { + log(DEBUG,"joinflood lock"); locked = true; unlocktime = time(NULL) + 60; } @@ -142,7 +146,7 @@ class ModuleJoinFlood : public Module { if (!c->GetExt("joinflood")) { - joinfloodsettings *f = new joinfloodsettings(njoins,nsecs); + joinfloodsettings *f = new joinfloodsettings(nsecs,njoins); c->Extend("joinflood",(char*)f); } } -- cgit v1.2.3