From 2b1ef50ed84948006a9cfd87c61ba23a786666e8 Mon Sep 17 00:00:00 2001 From: danieldg Date: Sat, 24 Oct 2009 22:27:55 +0000 Subject: Fix incorrect netburst detection git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11972 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/treesocket2.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/modules/m_spanningtree') diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index 0023579fa..4b5a35d49 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -442,13 +442,14 @@ void TreeSocket::ProcessConnectedLine(std::string& prefix, std::string& command, else if (command == "BURST") { // Set prefix server as bursting - if (!IS_SERVER(who)) + TreeServer* ServerSource = Utils->FindServer(prefix); + if (!ServerSource) { ServerInstance->SNO->WriteGlobalSno('l', "WTF: Got BURST from a non-server(?): %s", prefix.c_str()); return; } - route_back_again->bursting = true; + ServerSource->bursting = true; Utils->DoOneToAllButSender(prefix, command, params, prefix); } else if (command == "ENDBURST") -- cgit v1.2.3