diff options
Diffstat (limited to 'src/modules/m_commonchans.cpp')
-rw-r--r-- | src/modules/m_commonchans.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/modules/m_commonchans.cpp b/src/modules/m_commonchans.cpp index e04217e71..678be0c43 100644 --- a/src/modules/m_commonchans.cpp +++ b/src/modules/m_commonchans.cpp @@ -19,19 +19,12 @@ #include "inspircd.h" -/** Handles user mode +c - */ -class PrivacyMode : public SimpleUserModeHandler -{ - public: - PrivacyMode(Module* Creator) : SimpleUserModeHandler(Creator, "deaf_commonchan", 'c') { } -}; - class ModulePrivacyMode : public Module { - PrivacyMode pm; + SimpleUserModeHandler pm; public: - ModulePrivacyMode() : pm(this) + ModulePrivacyMode() + : pm(this, "deaf_commonchan", 'c') { } |