summaryrefslogtreecommitdiff
path: root/src/modules/m_stripcolor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_stripcolor.cpp')
-rw-r--r--src/modules/m_stripcolor.cpp25
1 files changed, 4 insertions, 21 deletions
diff --git a/src/modules/m_stripcolor.cpp b/src/modules/m_stripcolor.cpp
index 9afe7132c..8068d8b7e 100644
--- a/src/modules/m_stripcolor.cpp
+++ b/src/modules/m_stripcolor.cpp
@@ -22,34 +22,17 @@
#include "inspircd.h"
#include "modules/exemption.h"
-/** Handles channel mode +S
- */
-class ChannelStripColor : public SimpleChannelModeHandler
-{
- public:
- ChannelStripColor(Module* Creator) : SimpleChannelModeHandler(Creator, "stripcolor", 'S') { }
-};
-
-/** Handles user mode +S
- */
-class UserStripColor : public SimpleUserModeHandler
-{
- public:
- UserStripColor(Module* Creator) : SimpleUserModeHandler(Creator, "u_stripcolor", 'S') { }
-};
-
-
class ModuleStripColor : public Module
{
CheckExemption::EventProvider exemptionprov;
- ChannelStripColor csc;
- UserStripColor usc;
+ SimpleChannelModeHandler csc;
+ SimpleUserModeHandler usc;
public:
ModuleStripColor()
: exemptionprov(this)
- , csc(this)
- , usc(this)
+ , csc(this, "stripcolor", 'S')
+ , usc(this, "u_stripcolor", 'S')
{
}