]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_operchans.cpp
Add an oper only parameter to Simple{Channel,User}ModeHandler.
[user/henk/code/inspircd.git] / src / modules / m_operchans.cpp
index 8f600392302803f6be6ee046014bd03376177425..6863fc2441bf6858f4e65a140ef8ad8d674189e7 100644 (file)
@@ -28,26 +28,16 @@ enum
        ERR_CANTJOINOPERSONLY = 520
 };
 
-class OperChans : public SimpleChannelModeHandler
-{
- public:
-       /* This is an oper-only mode */
-       OperChans(Module* Creator) : SimpleChannelModeHandler(Creator, "operonly", 'O')
-       {
-               oper = true;
-       }
-};
-
 class ModuleOperChans : public Module
 {
  private:
-       OperChans oc;
+       SimpleChannelModeHandler oc;
        std::string space;
        std::string underscore;
 
  public:
        ModuleOperChans()
-               : oc(this)
+               : oc(this, "operonly", 'O', true)
                , space(" ")
                , underscore("_")
        {