diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-04 19:38:15 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-04 19:38:15 +0000 |
commit | d4cde6d4adb0c13e8be9f8330fea055fcfee40b3 (patch) | |
tree | 5f5f775682d899bca669c075210f946f5493014c /src/modules | |
parent | 945ee2b6f8d4dc480aa39d0bfb0de407445f6722 (diff) |
Ping checking fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2163 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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()) { |