diff options
Diffstat (limited to 'src/modules/m_namedmodes.cpp')
-rw-r--r-- | src/modules/m_namedmodes.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/modules/m_namedmodes.cpp b/src/modules/m_namedmodes.cpp index 7de6a6caa..020b1eb0a 100644 --- a/src/modules/m_namedmodes.cpp +++ b/src/modules/m_namedmodes.cpp @@ -80,12 +80,21 @@ class CommandProp : public Command } }; +class DummyZ : public ModeHandler +{ + public: + DummyZ(Module* parent) : ModeHandler(parent, "namebase", 'Z', PARAM_ALWAYS, MODETYPE_CHANNEL) + { + list = true; + } +}; + class ModuleNamedModes : public Module { CommandProp cmd; - ModeHandler dummyZ; + DummyZ dummyZ; public: - ModuleNamedModes() : cmd(this), dummyZ(this, "namebase", 'Z', PARAM_ALWAYS, MODETYPE_CHANNEL) + ModuleNamedModes() : cmd(this), dummyZ(this) { } |