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, 3 insertions, 1 deletions
diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp
index 53c9500db..7dfe9b943 100644
--- a/src/modules/m_messageflood.cpp
+++ b/src/modules/m_messageflood.cpp
@@ -26,6 +26,8 @@ using namespace std;
/* $ModDesc: Provides channel mode +f (message flood protection) */
+extern InspIRCd* ServerInstance;
+
class floodsettings : public classbase
{
public:
@@ -268,7 +270,7 @@ class ModuleMsgFlood : public Module
virtual void On005Numeric(std::string &output)
{
- InsertMode(output, "f", 3);
+ ServerInstance->ModeGrok->InsertMode(output, "f", 3);
}
virtual ~ModuleMsgFlood()