summaryrefslogtreecommitdiff
path: root/src/modules/m_nokicks.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_nokicks.cpp')
-rw-r--r--src/modules/m_nokicks.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/m_nokicks.cpp b/src/modules/m_nokicks.cpp
index c1cc9670f..c1151472d 100644
--- a/src/modules/m_nokicks.cpp
+++ b/src/modules/m_nokicks.cpp
@@ -25,6 +25,8 @@ using namespace std;
/* $ModDesc: Provides support for unreal-style channel mode +Q */
+extern InspIRCd* ServerInstance;
+
class NoKicks : public ModeHandler
{
public:
@@ -75,7 +77,7 @@ class ModuleNoKicks : public Module
virtual void On005Numeric(std::string &output)
{
- InsertMode(output,"Q",4);
+ ServerInstance->ModeGrok->InsertMode(output,"Q",4);
}
virtual int OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type)