]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/users.h
Store id in TreeServer, use TreeServer::GetID() to get the id (NOTE: it is std::string)
[user/henk/code/inspircd.git] / include / users.h
index 66ca2b9ccd9239b95da35da504e31826af07b9f2..40c3603518e1e2be0729a701f63faa4a3427754d 100644 (file)
@@ -490,6 +490,11 @@ class CoreExport userrec : public connection
         */
        char nick[NICKMAX];
 
+       /** The user's unique identifier.
+        * This is the unique identifier which the user has across the network.
+        */
+       char uuid[UUID_LENGTH];
+
        /** The users ident reply.
         * Two characters are added to the user-defined limit to compensate for the tilde etc.
         */
@@ -655,9 +660,11 @@ class CoreExport userrec : public connection
        bool exempt;
 
        /** Default constructor
-        * @throw Nothing at present
+        * @throw CoreException if the UID allocated to the user already exists
+        * @param Instance Creator instance
+        * @param uid User UUID, or empty to allocate one automatically
         */
-       userrec(InspIRCd* Instance);
+       userrec(InspIRCd* Instance, const std::string &uid = "");
 
        /** Returns the full displayed host of the user
         * This member function returns the hostname of the user as seen by other users