]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_operchans.cpp
Remove InspIRCd* parameters and fields
[user/henk/code/inspircd.git] / src / modules / m_operchans.cpp
index 1dbc61f902e556f0858c4daa399f339f4a806a9e..edafcd0712e982f83c4f7526772870dd0969dc59 100644 (file)
@@ -19,7 +19,7 @@ class OperChans : public ModeHandler
 {
  public:
        /* This is an oper-only mode */
-       OperChans(InspIRCd* Instance, Module* Creator) : ModeHandler(Creator, 'O', PARAM_NONE, MODETYPE_CHANNEL) { oper = true; }
+       OperChans(Module* Creator) : ModeHandler(Creator, 'O', PARAM_NONE, MODETYPE_CHANNEL) { oper = true; }
 
        ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding)
        {
@@ -48,8 +48,8 @@ class ModuleOperChans : public Module
 {
        OperChans oc;
  public:
-       ModuleOperChans(InspIRCd* Me)
-               : Module(Me), oc(Me, this)
+       ModuleOperChans()
+               : oc(this)
        {
                if (!ServerInstance->Modes->AddMode(&oc))
                        throw ModuleException("Could not add new modes!");