diff options
author | Sadie Powell <sadie@witchery.services> | 2020-01-05 15:22:40 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-01-05 15:22:40 +0000 |
commit | 473df5542f96cf572a918979db843a75a2c94798 (patch) | |
tree | 1a4e635d9096eaed97290c50bc729139680eaa69 /src/modules/m_operchans.cpp | |
parent | 007e0b46a82f0aa4ebe47472d0fed63d845107b7 (diff) |
Add an oper only parameter to Simple{Channel,User}ModeHandler.
Diffstat (limited to 'src/modules/m_operchans.cpp')
-rw-r--r-- | src/modules/m_operchans.cpp | 14 |
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("_") { |