From dccf47d0a091be2395257d401f8ed55eaa258bc7 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 28 Oct 2018 13:01:33 +0000 Subject: Also synchronise the prefix rank between servers. --- src/modules/m_spanningtree/capab.cpp | 6 +++--- 1 file 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()) -- cgit v1.2.3