]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_joinflood Unset the mode on unload
authorAttila Molnar <attilamolnar@hush.com>
Mon, 20 Jan 2014 23:44:41 +0000 (00:44 +0100)
committerAttila Molnar <attilamolnar@hush.com>
Mon, 20 Jan 2014 23:44:41 +0000 (00:44 +0100)
src/modules/m_joinflood.cpp

index 4524a93c0ef4bc0e12bce72095385ed4e914dc40..63bcc38a4180c30526814f66ee6396d433b94ae8 100644 (file)
@@ -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', "");