summaryrefslogtreecommitdiff
path: root/src/modules/m_blockcolor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_blockcolor.cpp')
-rw-r--r--src/modules/m_blockcolor.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/modules/m_blockcolor.cpp b/src/modules/m_blockcolor.cpp
index 175c3b793..e3135185d 100644
--- a/src/modules/m_blockcolor.cpp
+++ b/src/modules/m_blockcolor.cpp
@@ -24,23 +24,15 @@
#include "inspircd.h"
#include "modules/exemption.h"
-/** Handles the +c channel mode
- */
-class BlockColor : public SimpleChannelModeHandler
-{
- public:
- BlockColor(Module* Creator) : SimpleChannelModeHandler(Creator, "blockcolor", 'c') { }
-};
-
class ModuleBlockColor : public Module
{
CheckExemption::EventProvider exemptionprov;
- BlockColor bc;
+ SimpleChannelModeHandler bc;
public:
ModuleBlockColor()
: exemptionprov(this)
- , bc(this)
+ , bc(this, "blockcolor", 'c')
{
}