diff options
author | Peter Powell <petpow@saberuk.com> | 2018-10-28 13:01:33 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-10-28 13:01:33 +0000 |
commit | dccf47d0a091be2395257d401f8ed55eaa258bc7 (patch) | |
tree | 28117b7502f9821826566c6106c106ecd58b2371 /src/modules | |
parent | ea7eb543cbbc9d42def708f271ff00e524094a59 (diff) |
Also synchronise the prefix rank between servers.
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_spanningtree/capab.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree/capab.cpp b/src/modules/m_spanningtree/capab.cpp index 16e3bfbf0..5daea5202 100644 --- a/src/modules/m_spanningtree/capab.cpp +++ b/src/modules/m_spanningtree/capab.cpp @@ -86,11 +86,12 @@ std::string TreeSocket::BuildModeList(ModeType mtype) for (ModeParser::ModeHandlerMap::const_iterator i = mhs.begin(); i != mhs.end(); ++i) { const ModeHandler* const mh = i->second; + const PrefixMode* const pm = mh->IsPrefixMode(); std::string mdesc; if (proto_version != 1202) { - if (mh->IsPrefixMode()) - mdesc.append("prefix:"); + if (pm) + mdesc.append("prefix:").append(ConvToStr(pm->GetPrefixRank())).push_back(':'); else if (mh->IsListMode()) mdesc.append("list:"); else if (mh->NeedsParam(true)) @@ -100,7 +101,6 @@ std::string TreeSocket::BuildModeList(ModeType mtype) } mdesc.append(mh->name); mdesc.push_back('='); - const PrefixMode* const pm = mh->IsPrefixMode(); if (pm) { if (pm->GetPrefix()) |