summaryrefslogtreecommitdiff
path: root/src/modules/m_namedmodes.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-03-06 02:14:48 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-03-06 02:14:48 +0000
commita1fab90c8040280a6a812a9454f085c062990708 (patch)
treeb020fdda611c928dea4785c6c82020ad57e93d64 /src/modules/m_namedmodes.cpp
parent6d55803ae8348d973ff472d5e734026af3e895b4 (diff)
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
Diffstat (limited to 'src/modules/m_namedmodes.cpp')
-rw-r--r--src/modules/m_namedmodes.cpp13
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)
{
}