diff options
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()) { |