]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/usermanager.h
Merge pull request #523 from SaberUK/master+server-notice
[user/henk/code/inspircd.git] / include / usermanager.h
index 92b40b373ba6b595768f40180945e6c6b04bd6c5..560db17f2c72b64125a0f92dfe253a5ed564960d 100644 (file)
@@ -17,8 +17,7 @@
  */
 
 
-#ifndef USERMANAGER_H
-#define USERMANAGER_H
+#pragma once
 
 #include <list>
 
@@ -52,9 +51,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 +69,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.
@@ -162,5 +167,3 @@ class CoreExport UserManager
         */
        void ServerPrivmsgAll(const char* text, ...) CUSTOM_PRINTF(2, 3);
 };
-
-#endif