summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-14 18:02:27 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-14 18:02:27 +0000
commit1ad0ddd47c02ba7dba0bdb430367811cccb9c28d (patch)
treef0b062c1e07baae8f6d7106e547a2dc6cd19976d /src
parentcbb888a47064a8b70254047fd305bea73c2395ad (diff)
quietbursts tweak for hirop
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7023 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree/treesocket2.cpp14
1 files 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")