summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/typedefs.h2
-rw-r--r--include/usermanager.h2
-rw-r--r--include/users.h4
3 files changed, 6 insertions, 2 deletions
diff --git a/include/typedefs.h b/include/typedefs.h
index 250bec5c9..06f704120 100644
--- a/include/typedefs.h
+++ b/include/typedefs.h
@@ -66,7 +66,7 @@ struct ResourceRecord;
/** A list holding local users, this is the type of UserManager::local_users
*/
-typedef std::vector<LocalUser*> LocalUserList;
+typedef std::list<LocalUser*> LocalUserList;
/** A list of failed port bindings, used for informational purposes on startup */
typedef std::vector<std::pair<std::string, std::string> > FailedPortList;
diff --git a/include/usermanager.h b/include/usermanager.h
index be6c6b6bb..3d7fe88fb 100644
--- a/include/usermanager.h
+++ b/include/usermanager.h
@@ -52,7 +52,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;
diff --git a/include/users.h b/include/users.h
index 9b1339611..1328bf0cb 100644
--- a/include/users.h
+++ b/include/users.h
@@ -747,6 +747,10 @@ class CoreExport LocalUser : public User, public InviteBase
UserIOHandler eh;
+ /** Position in UserManager::local_users
+ */
+ LocalUserList::iterator localuseriter;
+
/** Stats counter for bytes inbound
*/
int bytes_in;