summaryrefslogtreecommitdiff
path: root/src/modules/m_operchans.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_operchans.cpp')
-rw-r--r--src/modules/m_operchans.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/m_operchans.cpp b/src/modules/m_operchans.cpp
index 8d066b211..1aace393c 100644
--- a/src/modules/m_operchans.cpp
+++ b/src/modules/m_operchans.cpp
@@ -25,6 +25,8 @@ using namespace std;
/* $ModDesc: Provides support for oper-only chans via the +O channel mode */
+extern InspIRCd* ServerInstance;
+
class OperChans : public ModeHandler
{
public:
@@ -75,7 +77,7 @@ class ModuleOperChans : public Module
virtual void On005Numeric(std::string &output)
{
- InsertMode(output,"O",4);
+ ServerInstance->ModeGrok->InsertMode(output,"O",4);
}
virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname)