summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_joinflood.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_joinflood.cpp b/src/modules/m_joinflood.cpp
index 391f13b24..f372f1990 100644
--- a/src/modules/m_joinflood.cpp
+++ b/src/modules/m_joinflood.cpp
@@ -169,7 +169,7 @@ class JoinFlood : public ModeHandler
else
{
// new mode param, replace old with new
- if ((!nsecs) && (!njoins))
+ if ((!nsecs > 0) && (!njoins > 0))
{
joinfloodsettings *f = new joinfloodsettings(nsecs,njoins);
channel->Shrink("joinflood");