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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp
index 7dfe9b943..9049eca8c 100644
--- a/src/modules/m_messageflood.cpp
+++ b/src/modules/m_messageflood.cpp
@@ -89,7 +89,7 @@ class floodsettings : public classbase
class MsgFlood : public ModeHandler
{
public:
- MsgFlood() : ModeHandler('f', 1, 0, false, MODETYPE_CHANNEL, false) { }
+ MsgFlood(InspIRCd* Instance) : ModeHandler(Instance, 'f', 1, 0, false, MODETYPE_CHANNEL, false) { }
ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string &parameter)
{
@@ -195,7 +195,7 @@ class ModuleMsgFlood : public Module
: Module::Module(Me)
{
Srv = Me;
- mf = new MsgFlood();
+ mf = new MsgFlood(ServerInstance);
Srv->AddMode(mf, 'f');
}