diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-01-07 12:47:29 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-01-07 12:47:29 +0000 |
commit | 2add2b79ca3152201e325ed75c09e0c9bd0fecc4 (patch) | |
tree | 76f48c251016c97c72e4e7100e97e839d3a2067b /src/modules/m_spanningtree/treeserver.h | |
parent | 38cc4dda4df259bac5a3602be6861cf22e4171e9 (diff) |
Fix up some usercounts stuff.. to be tested.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8655 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree/treeserver.h')
-rw-r--r-- | src/modules/m_spanningtree/treeserver.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/modules/m_spanningtree/treeserver.h b/src/modules/m_spanningtree/treeserver.h index d465722aa..28e36252d 100644 --- a/src/modules/m_spanningtree/treeserver.h +++ b/src/modules/m_spanningtree/treeserver.h @@ -37,8 +37,8 @@ class TreeServer : public classbase irc::string ServerName; /* Server's name */ std::string ServerDesc; /* Server's description */ std::string VersionString; /* Version string or empty string */ - int UserCount; /* Not used in this version */ - int OperCount; /* Not used in this version */ + unsigned int ServerUserCount; /* How many users are on this server? [note: doesn't care about +i] */ + unsigned int ServerOperCount; /* How many opers are on this server? */ TreeSocket* Socket; /* For directly connected servers this points at the socket object */ time_t NextPing; /* After this time, the server should be PINGed*/ bool LastPingWasGood; /* True if the server responded to the last PING with a PONG */ @@ -137,21 +137,21 @@ class TreeServer : public classbase */ void SetPingFlag(); - /** Get the number of users on this server for MAP + /** Get the number of users on this server. */ - int GetUserCount(); + unsigned int GetUserCount(); - /** Increment the user counter + /** Increment or decrement the user count by diff. */ - void AddUserCount(); + void SetUserCount(int diff); - /** Decrement the user counter + /** Gets the numbers of opers on this server. */ - void DelUserCount(); + unsigned int GetOperCount(); - /** Get the oper count for this server + /** Increment or decrement the oper count by diff. */ - int GetOperCount(); + void SetOperCount(int diff); /** Get the TreeSocket pointer for local servers. * For remote servers, this returns NULL. |