diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-27 11:24:43 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-27 11:24:43 +0000 |
commit | 0ba4b96bbaf1ef385fda088be6e02f93d1b03904 (patch) | |
tree | 3f264c12b44499ba51327315c33e6d66ad592387 /include | |
parent | 9cb422d3e5e0d8db0f429a219f75b7bbfea23ee6 (diff) |
Allocate uid in userrec constructor. Optional param added, if its empty, the server allocates one, if its not empty the user gets the one given
(this is used for remote users)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7873 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/inspircd.h | 5 | ||||
-rw-r--r-- | include/users.h | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index 99b709518..f5a558e6e 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -461,6 +461,11 @@ class CoreExport InspIRCd : public classbase */ user_hash* clientlist; + /** Client list stored by UUID. Contains all clients, and is updated + * automatically by the constructor and destructor of userrec. + */ + user_hash* uuidlist; + /** Channel list, a hash_map containing all channels */ chan_hash* chanlist; diff --git a/include/users.h b/include/users.h index bcd67a65d..17bc9ca2a 100644 --- a/include/users.h +++ b/include/users.h @@ -661,8 +661,10 @@ class CoreExport userrec : public connection /** Default constructor * @throw Nothing at present + * @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 |