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.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/modules/m_operchans.cpp b/src/modules/m_operchans.cpp
index 8f6003923..6863fc244 100644
--- a/src/modules/m_operchans.cpp
+++ b/src/modules/m_operchans.cpp
@@ -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("_")
{