From e1d0503a760bc6f43804e2212d997d6bee22cfa2 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Tue, 21 Jan 2014 00:44:41 +0100 Subject: m_joinflood Unset the mode on unload --- src/modules/m_joinflood.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/modules') 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', ""); -- cgit v1.2.3