diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-03-06 02:14:48 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-03-06 02:14:48 +0000 |
commit | a1fab90c8040280a6a812a9454f085c062990708 (patch) | |
tree | b020fdda611c928dea4785c6c82020ad57e93d64 /src | |
parent | 6d55803ae8348d973ff472d5e734026af3e895b4 (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')
-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) { } |