From a1fab90c8040280a6a812a9454f085c062990708 Mon Sep 17 00:00:00 2001 From: danieldg Date: Sat, 6 Mar 2010 02:14:48 +0000 Subject: Fix mode Z being in the wrong section of the CHANMODES list git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12601 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_namedmodes.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/modules/m_namedmodes.cpp') 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) { } -- cgit v1.2.3