From e252bc729edc301cd7bc5cedda51d6e357067758 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Wed, 10 Feb 2010 11:36:46 -0600 Subject: Display mode Z in 004/005 line --- src/mode.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/mode.cpp') 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++) { -- cgit v1.3.1-10-gc9f91