summaryrefslogtreecommitdiff
path: root/include/usermanager.h
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-01-24 13:08:13 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-01-24 13:08:13 +0100
commitf1f8173bb5ca5f5ce01ad92d0ccd309f232fc138 (patch)
treef9dc48385b78066d8da9fba546f979d6686f4be3 /include/usermanager.h
parent932e8d13f81c7c94a89dc3702f6d45bc185f5dcf (diff)
Convert LocalUserList to an intrusively linked list
Diffstat (limited to 'include/usermanager.h')
-rw-r--r--include/usermanager.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/usermanager.h b/include/usermanager.h
index a807cd447..e287d74d0 100644
--- a/include/usermanager.h
+++ b/include/usermanager.h
@@ -63,10 +63,6 @@ class CoreExport UserManager
*/
unsigned int unregistered_count;
- /** Number of elements in local_users
- */
- unsigned int local_count;
-
/** Map of global ip addresses for clone counting
* XXX - this should be private, but m_clones depends on it currently.
*/
@@ -159,7 +155,7 @@ class CoreExport UserManager
/** Return a count of local registered users
* @return The number of registered local users
*/
- unsigned int LocalUserCount() const { return (this->local_count - this->UnregisteredUserCount()); }
+ unsigned int LocalUserCount() const { return (this->local_users.size() - this->UnregisteredUserCount()); }
/** Send a server notice to all local users
* @param text The text format string to send