aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/compat.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2014-07-27 18:59:43 +0200
committerGravatar Attila Molnar2014-07-27 18:59:43 +0200
commitc1fa07d2eb6146a9e3f6c26f478a22b119032d27 (patch)
treecc3bb95c8419b527f7efb36f52c93d490e5b60be /src/modules/m_spanningtree/compat.cpp
parentm_spanningtree Parse additional information present in SERVER messages (diff)
m_spanningtree Sync bursting state of servers in SERVER
Also send the time when they started bursting
Diffstat (limited to 'src/modules/m_spanningtree/compat.cpp')
-rw-r--r--src/modules/m_spanningtree/compat.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/compat.cpp b/src/modules/m_spanningtree/compat.cpp
index 9f25f251d..127907836 100644
--- a/src/modules/m_spanningtree/compat.cpp
+++ b/src/modules/m_spanningtree/compat.cpp
@@ -469,6 +469,11 @@ bool TreeSocket::PreProcessOldProtocolMessage(User*& who, std::string& cmd, std:
params[1].swap(params[3]);
params.erase(params.begin()+2, params.begin()+4);
+
+ // If the source of this SERVER message is not bursting, then new servers it introduces are bursting
+ TreeServer* server = TreeServer::Get(who);
+ if (!server->IsBursting())
+ params.insert(params.begin()+2, "burst=" + ConvToStr(ServerInstance->Time()*1000));
}
else if (cmd == "BURST")
{