diff options
| author | 2017-11-12 20:53:24 +0000 | |
|---|---|---|
| committer | 2017-11-13 16:24:42 +0000 | |
| commit | 0fd2d50fcf1bcff107d6d185aad5d8e9245d4141 (patch) | |
| tree | ac3552562673f593f1b94e0f13421213faaae7bb /src/modules/m_blockcaps.cpp | |
| parent | Add the m_ircv3_sts module which implements the IRCv3 STS spec. (diff) | |
| download | inspircd++-0fd2d50fcf1bcff107d6d185aad5d8e9245d4141.tar.gz inspircd++-0fd2d50fcf1bcff107d6d185aad5d8e9245d4141.tar.bz2 inspircd++-0fd2d50fcf1bcff107d6d185aad5d8e9245d4141.zip | |
Only subclass Simple{Channel,User}ModeHandler when necessary.
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') { } |
