]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/usermanager.h
Switch <stdint.h> test to use a test file too.
[user/henk/code/inspircd.git] / include / usermanager.h
index be6c6b6bb9b1990cfc2d3f7f4e2c77e42d712fed..2a9d6b47b2b9ca54c893ba75a07bbe296a74f9e9 100644 (file)
@@ -32,6 +32,8 @@ class CoreExport UserManager
         */
        clonemap local_clones;
  public:
+       UserManager();
+
        ~UserManager()
        {
                for (user_hash::iterator i = clientlist->begin();i != clientlist->end();i++)
@@ -52,7 +54,7 @@ class CoreExport UserManager
         */
        user_hash* uuidlist;
 
-       /** Local client list, a vector containing only local clients
+       /** Local client list, a list containing only local clients
         */
        LocalUserList local_users;
 
@@ -63,7 +65,11 @@ class CoreExport UserManager
        /** Number of unregistered users online right now.
         * (Unregistered means before USER/NICK/dns)
         */
-       int unregistered_count;
+       unsigned int unregistered_count;
+
+       /** Number of elements in local_users
+        */
+       unsigned int local_count;
 
        /** Map of global ip addresses for clone counting
         * XXX - this should be private, but m_clones depends on it currently.
@@ -106,6 +112,10 @@ class CoreExport UserManager
         */
        void RemoveCloneCounts(User *user);
 
+       /** Rebuild clone counts
+        */
+       void RehashCloneCounts();
+
        /** Return the number of global clones of this user
         * @param user The user to get a count for
         * @return The global clone count of this user