summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-24 16:36:56 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-24 16:36:56 +0000
commit59c81b058084260c201938672d69cc6245a25301 (patch)
tree49891fd8b53cd18b178dd84310adb2610e19f2ec /src
parent2dfe8acc52c34a8aafcc40e2a47638a2e11c5326 (diff)
Swapped around params to make this work
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2879 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_joinflood.cpp6
1 files changed, 5 insertions, 1 deletions
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);
}
}