aboutsummaryrefslogtreecommitdiffstats
path: root/src/mode.cpp
diff options
context:
space:
mode:
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++)
{