From 1ad0ddd47c02ba7dba0bdb430367811cccb9c28d Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 14 May 2007 18:02:27 +0000 Subject: [PATCH] quietbursts tweak for hirop git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7023 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/treesocket2.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index 31585d7f5..94da9e3b7 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -1251,6 +1251,8 @@ bool TreeSocket::ProcessLine(std::string &line) } else if (command == "PING") { + if (prefix == "") + prefix = this->GetName(); /* * We just got a ping from a server that's bursting. * This can't be right, so set them to not bursting, and @@ -1266,14 +1268,13 @@ bool TreeSocket::ProcessLine(std::string &line) Instance->XLines->apply_lines(Utils->lines_to_apply); Utils->lines_to_apply = 0; } - if (prefix == "") - { - prefix = this->GetName(); - } + return this->LocalPing(prefix,params); } else if (command == "PONG") { + if (prefix == "") + prefix = this->GetName(); /* * We just got a pong from a server that's bursting. * This can't be right, so set them to not bursting, and @@ -1289,10 +1290,7 @@ bool TreeSocket::ProcessLine(std::string &line) Instance->XLines->apply_lines(Utils->lines_to_apply); Utils->lines_to_apply = 0; } - if (prefix == "") - { - prefix = this->GetName(); - } + return this->LocalPong(prefix,params); } else if (command == "VERSION") -- 2.39.2