summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-10 21:39:17 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-10 21:39:17 +0000
commit7a8a69fb34fb9142b0c8943064f024e486c68a85 (patch)
tree0eb79c8574a850f2ab9579f593a0da68a4eb31b8 /src/modules/m_spanningtree.cpp
parent26d86d5bcc9c774a0dd7fee35879e40de0aaacc9 (diff)
Fixed methods being used for wrong object type
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2768 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r--src/modules/m_spanningtree.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index e8b761543..1c0b91241 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -1810,13 +1810,6 @@ class TreeSocket : public InspSocket
if (line == "")
return true;
Srv->Log(DEBUG,"IN: "+line);
-
- /* Fix by brain:
- * When there is activity on the socket, reset the ping counter so
- * that we're not wasting bandwidth pinging an active server.
- */
- this->SetNextPingTime(curtime + 300);
- this->SetPingFlag();
std::deque<std::string> params;
this->Split(line,true,params);
@@ -1974,6 +1967,13 @@ class TreeSocket : public InspSocket
log(DEBUG,"Protocol violation: Fake direction in command '%s' from connection '%s'",line.c_str(),this->GetName().c_str());
return true;
}
+
+ /* Fix by brain:
+ * When there is activity on the socket, reset the ping counter so
+ * that we're not wasting bandwidth pinging an active server.
+ */
+ route_back_again->SetNextPingTime(time(NULL) + 300);
+ route_back_again->SetPingFlag();
}
if (command == "SVSMODE")