From: Attila Molnar Date: Mon, 20 Jan 2014 23:44:41 +0000 (+0100) Subject: m_joinflood Unset the mode on unload X-Git-Tag: v2.0.23~219 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=e1d0503a760bc6f43804e2212d997d6bee22cfa2;p=user%2Fhenk%2Fcode%2Finspircd.git m_joinflood Unset the mode on unload --- 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', "");