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_nonotice.cpp | |
| parent | Add the m_ircv3_sts module which implements the IRCv3 STS spec. (diff) | |
Only subclass Simple{Channel,User}ModeHandler when necessary.
Diffstat (limited to 'src/modules/m_nonotice.cpp')
| -rw-r--r-- | src/modules/m_nonotice.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/modules/m_nonotice.cpp b/src/modules/m_nonotice.cpp index f6496120b..d7ea32d2f 100644 --- a/src/modules/m_nonotice.cpp +++ b/src/modules/m_nonotice.cpp @@ -22,21 +22,15 @@ #include "inspircd.h" #include "modules/exemption.h" -class NoNotice : public SimpleChannelModeHandler -{ - public: - NoNotice(Module* Creator) : SimpleChannelModeHandler(Creator, "nonotice", 'T') { } -}; - class ModuleNoNotice : public Module { CheckExemption::EventProvider exemptionprov; - NoNotice nt; + SimpleChannelModeHandler nt; public: ModuleNoNotice() : exemptionprov(this) - , nt(this) + , nt(this, "nonotice", 'T') { } |
