summaryrefslogtreecommitdiff
path: root/include/usermanager.h
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-03-12 17:27:11 +0000
committerSadie Powell <sadie@witchery.services>2020-03-12 17:51:03 +0000
commit1efc234a54bd66714f9743ca7d1f3d5c0be3628e (patch)
treeb352bf8c30f8fea17f6be2b17d0a74fe97fa61da /include/usermanager.h
parent906e44f687185f6507cba95ec1b565de4936eb03 (diff)
Implement support for the SERVLIST command.
Diffstat (limited to 'include/usermanager.h')
-rw-r--r--include/usermanager.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/usermanager.h b/include/usermanager.h
index ad09d968c..2a18393ab 100644
--- a/include/usermanager.h
+++ b/include/usermanager.h
@@ -46,6 +46,9 @@ class CoreExport UserManager : public fakederef<UserManager>
*/
typedef std::vector<User*> OperList;
+ /** A list containing users who are on a U-lined servers. */
+ typedef std::vector<User*> ULineList;
+
/** A list holding local users
*/
typedef insp::intrusive_list<LocalUser> LocalList;
@@ -89,14 +92,14 @@ class CoreExport UserManager : public fakederef<UserManager>
*/
OperList all_opers;
+ /** A list of users on U-lined servers. */
+ ULineList all_ulines;
+
/** Number of unregistered users online right now.
* (Unregistered means before USER/NICK/dns)
*/
unsigned int unregistered_count;
- /** The number of users on U-lined servers. */
- unsigned int uline_count;
-
/** Perform background user events for all local users such as PING checks, registration timeouts,
* penalty management and recvq processing for users who have data in their recvq due to throttling.
*/
@@ -175,7 +178,7 @@ class CoreExport UserManager : public fakederef<UserManager>
/** Return a count of users on a u-lined servers.
* @return The number of users on u-lined servers.
*/
- unsigned int ULineCount() const { return this->uline_count; }
+ unsigned int ULineCount() const { return this->all_ulines.size(); }
/** Return a count of local registered users
* @return The number of registered local users