summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-04 19:31:07 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-04 19:31:07 +0000
commit945ee2b6f8d4dc480aa39d0bfb0de407445f6722 (patch)
tree568b9b2adeec3753e758951ca5781cb90a590b03
parentb6de4410321b26eb4a591d2693078a5ef5c7e582 (diff)
Ping checking fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2162 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_spanningtree.cpp44
1 files changed, 23 insertions, 21 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 439bd9fd6..a39a631fa 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -76,6 +76,8 @@ class TreeServer
int UserCount;
int OperCount;
TreeSocket* Socket; // for directly connected servers this points at the socket object
+ time_t NextPing;
+ bool LastPingWasGood;
public:
@@ -116,6 +118,27 @@ class TreeServer
return this->VersionString;
}
+ void SetNextPingTime(time_t t)
+ {
+ this->NextPing = t;
+ LastPingWasGood = false;
+ }
+
+ time_t NextPingTime()
+ {
+ return this->NextPing;
+ }
+
+ bool AnsweredLastPing()
+ {
+ return LastPingWasGood;
+ }
+
+ void SetPingFlag()
+ {
+ LastPingWasGood = true;
+ }
+
int GetUserCount()
{
return this->UserCount;
@@ -353,27 +376,6 @@ class TreeSocket : public InspSocket
}
return true;
}
-
- void SetNextPingTime(time_t t)
- {
- this->NextPing = t;
- LastPingWasGood = false;
- }
-
- time_t NextPingTime()
- {
- return this->NextPing;
- }
-
- bool AnsweredLastPing()
- {
- return LastPingWasGood;
- }
-
- void SetPingFlag()
- {
- LastPingWasGood = true;
- }
virtual void OnError(InspSocketError e)
{