summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_joinflood.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_joinflood.cpp b/src/modules/m_joinflood.cpp
index 4524a93c0..63bcc38a4 100644
--- a/src/modules/m_joinflood.cpp
+++ b/src/modules/m_joinflood.cpp
@@ -169,8 +169,7 @@ class JoinFlood : public ModeHandler
}
else
{
- joinfloodsettings* f = ext.get(channel);
- if (f)
+ if (channel->IsModeSet('j'))
{
ext.unset(channel);
channel->SetModeParam('j', "");