]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_operchans.cpp
Fix compilation of SQL modules, use GlobalCulls to clean up deleted modules
[user/henk/code/inspircd.git] / src / modules / m_operchans.cpp
index 32d54bce7a2a72ce495f7812b1b0519b0585142f..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!");
@@ -74,7 +74,7 @@ class ModuleOperChans : public Module
 
        Version GetVersion()
        {
-               return Version("$Id$", VF_VENDOR | VF_COMMON, API_VERSION);
+               return Version("Provides support for oper-only chans via the +O channel mode", VF_VENDOR | VF_COMMON, API_VERSION);
        }
 };