]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/usermanager.h
Stop recreating hashmaps every hour, move garbage collection code related to local...
[user/henk/code/inspircd.git] / include / usermanager.h
index 92b40b373ba6b595768f40180945e6c6b04bd6c5..812d8e2f2b77b47b37e133d38b77d5c6f2687dd3 100644 (file)
@@ -52,9 +52,9 @@ class CoreExport UserManager
         */
        user_hash* uuidlist;
 
-       /** Local client list, a vector containing only local clients
+       /** Local client list, a list containing only local clients
         */
-       std::vector<LocalUser*> local_users;
+       LocalUserList local_users;
 
        /** Oper list, a vector containing all local and remote opered users
         */
@@ -70,6 +70,12 @@ class CoreExport UserManager
         */
        clonemap global_clones;
 
+       /**
+        * Reset the already_sent IDs so we don't wrap it around and drop a message
+        * Also removes all expired invites
+     */
+       void GarbageCollect();
+
        /** Add a client to the system.
         * This will create a new User, insert it into the user_hash,
         * initialize it as not yet registered, and add it to the socket engine.