summaryrefslogtreecommitdiffstats
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-02-10 11:36:46 -0600
committerGravatar Daniel De Graaf2010-08-03 17:32:35 -0400
commite252bc729edc301cd7bc5cedda51d6e357067758 (patch)
tree60990cb028cff0e70c3859b74d3ef686bbf53e7c /src/mode.cpp
parentShow available named modes on /PROP * (diff)
downloadinspircd++-e252bc729edc301cd7bc5cedda51d6e357067758.tar.gz
inspircd++-e252bc729edc301cd7bc5cedda51d6e357067758.tar.bz2
inspircd++-e252bc729edc301cd7bc5cedda51d6e357067758.zip
Display mode Z in 004/005 line
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index af4b1e85c..42653a5d7 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -813,6 +813,7 @@ std::string ModeParser::ChannelModeList()
if (mh && mh->GetModeType() == MODETYPE_CHANNEL && mh->GetModeChar())
modestr[pointer++] = mh->GetModeChar();
}
+ modestr[pointer++] = 'Z';
modestr[pointer] = 0;
std::sort(modestr, modestr + pointer);
return modestr;
@@ -829,7 +830,9 @@ std::string ModeParser::ParaModeList()
if (mh && mh->GetModeType() == MODETYPE_CHANNEL && mh->GetNumParams(true) && mh->GetModeChar())
modestr[pointer++] = mh->GetModeChar();
}
- modestr[pointer++] = 0;
+ modestr[pointer++] = 'Z';
+ modestr[pointer] = 0;
+ std::sort(modestr, modestr + pointer);
return modestr;
}
@@ -850,6 +853,7 @@ std::string ModeParser::GiveModeList(ModeType m)
std::string type2; /* Modes that take a param when adding or removing */
std::string type3; /* Modes that only take a param when adding */
std::string type4; /* Modes that dont take a param */
+ type1.push_back('Z');
for(ModeIDIter id; id; id++)
{