summaryrefslogtreecommitdiff
path: root/src/modules/m_blockcaps.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_blockcaps.cpp')
-rw-r--r--src/modules/m_blockcaps.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_blockcaps.cpp b/src/modules/m_blockcaps.cpp
index 0fea32288..8cc3d8646 100644
--- a/src/modules/m_blockcaps.cpp
+++ b/src/modules/m_blockcaps.cpp
@@ -20,9 +20,12 @@
#include "modules.h"
#include "helperfuncs.h"
#include "inspircd.h"
+#include "mode.h"
/* $ModDesc: Provides support for channel mode +P to block all-CAPS channel messages and notices */
+extern InspIRCd* ServerInstance;
+
class BlockCaps : public ModeHandler
{
public:
@@ -71,7 +74,7 @@ public:
virtual void On005Numeric(std::string &output)
{
- InsertMode(output, "P", 4);
+ ServerInstance->ModeGrok->InsertMode(output, "P", 4);
}
virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text, char status)