diff options
Diffstat (limited to 'src/modules/m_blockcaps.cpp')
-rw-r--r-- | src/modules/m_blockcaps.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/modules/m_blockcaps.cpp b/src/modules/m_blockcaps.cpp index dc0bdf974..d7cd303b6 100644 --- a/src/modules/m_blockcaps.cpp +++ b/src/modules/m_blockcaps.cpp @@ -23,19 +23,10 @@ #include "inspircd.h" #include "modules/exemption.h" - -/** Handles the +B channel mode - */ -class BlockCaps : public SimpleChannelModeHandler -{ - public: - BlockCaps(Module* Creator) : SimpleChannelModeHandler(Creator, "blockcaps", 'B') { } -}; - class ModuleBlockCAPS : public Module { CheckExemption::EventProvider exemptionprov; - BlockCaps bc; + SimpleChannelModeHandler bc; unsigned int percent; unsigned int minlen; char capsmap[256]; @@ -43,7 +34,7 @@ class ModuleBlockCAPS : public Module public: ModuleBlockCAPS() : exemptionprov(this) - , bc(this) + , bc(this, "blockcaps", 'B') { } |