diff options
| author | 2010-02-10 11:36:46 -0600 | |
|---|---|---|
| committer | 2010-08-03 17:32:35 -0400 | |
| commit | e252bc729edc301cd7bc5cedda51d6e357067758 (patch) | |
| tree | 60990cb028cff0e70c3859b74d3ef686bbf53e7c /src | |
| parent | Show available named modes on /PROP * (diff) | |
Display mode Z in 004/005 line
Diffstat (limited to 'src')
| -rw-r--r-- | src/mode.cpp | 6 | ||||
| -rw-r--r-- | src/modules/m_namedmodes.cpp | 1 |
2 files changed, 5 insertions, 2 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++) { diff --git a/src/modules/m_namedmodes.cpp b/src/modules/m_namedmodes.cpp index 15fdd8e1f..39cb05d11 100644 --- a/src/modules/m_namedmodes.cpp +++ b/src/modules/m_namedmodes.cpp @@ -26,7 +26,6 @@ static void DisplayList(User* user, Channel* channel) items << " +" << mh->name; if (mh->GetNumParams(true)) items << " " << channel->GetModeParameter(mh); - items << " " << item; } char pfx[MAXBUF]; snprintf(pfx, MAXBUF, ":%s 961 %s %s", ServerInstance->Config->ServerName.c_str(), user->nick.c_str(), channel->name.c_str()); |
