diff options
Diffstat (limited to 'src/modules/m_nonicks.cpp')
-rw-r--r-- | src/modules/m_nonicks.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/modules/m_nonicks.cpp b/src/modules/m_nonicks.cpp index 91a1303c6..fbf772e0c 100644 --- a/src/modules/m_nonicks.cpp +++ b/src/modules/m_nonicks.cpp @@ -22,21 +22,15 @@ #include "inspircd.h" #include "modules/exemption.h" -class NoNicks : public SimpleChannelModeHandler -{ - public: - NoNicks(Module* Creator) : SimpleChannelModeHandler(Creator, "nonick", 'N') { } -}; - class ModuleNoNickChange : public Module { CheckExemption::EventProvider exemptionprov; - NoNicks nn; + SimpleChannelModeHandler nn; bool override; public: ModuleNoNickChange() : exemptionprov(this) - , nn(this) + , nn(this, "nonick", 'N') { } |