From d4cde6d4adb0c13e8be9f8330fea055fcfee40b3 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 4 Dec 2005 19:38:15 +0000 Subject: Ping checking fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2163 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules/m_spanningtree.cpp') diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index a39a631fa..057fb28c5 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -101,6 +101,7 @@ class TreeServer { VersionString = ""; UserCount = OperCount = 0; + this->SetNextPingTime(time(NULL) + 60); } std::string GetName() @@ -1671,7 +1672,7 @@ class ModuleSpanningTree : public Module TreeSocket* sock = serv->GetSocket(); if (sock) { - if (serv->NextPingTime() > curtime) + if (curtime >= serv->NextPingTime()) { if (serv->AnsweredLastPing()) { -- cgit v1.2.3