summaryrefslogtreecommitdiff
path: root/src/modules/m_messageflood.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_messageflood.cpp')
-rw-r--r--src/modules/m_messageflood.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp
index 2cbecfdac..bcec8248b 100644
--- a/src/modules/m_messageflood.cpp
+++ b/src/modules/m_messageflood.cpp
@@ -135,6 +135,8 @@ class MsgFlood : public ModeHandler
{
floodsettings *f = new floodsettings(ban,nsecs,nlines);
channel->Extend("flood",(char*)f);
+ channel->SetMode('f', true);
+ channel->SetModeParam('f', parameter.c_str(), true);
return MODEACTION_ALLOW;
}
}
@@ -153,6 +155,7 @@ class MsgFlood : public ModeHandler
floodsettings *f = (floodsettings*)channel->GetExt("flood");
DELETE(f);
channel->Shrink("flood");
+ channel->SetMode('f', false);
return MODEACTION_ALLOW;
}
}