From e5ada400b0f2e2ae02f40867450a6789126da6e3 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sat, 19 Jul 2014 14:28:51 +0200 Subject: Access local user list via new UserManager::GetLocalUsers() and make local_users private --- include/usermanager.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/usermanager.h b/include/usermanager.h index 2f77e8333..361584cda 100644 --- a/include/usermanager.h +++ b/include/usermanager.h @@ -52,6 +52,10 @@ class CoreExport UserManager : public fakederef */ const CloneCounts zeroclonecounts; + /** Local client list, a list containing only local clients + */ + LocalList local_users; + public: /** Constructor, initializes variables */ @@ -70,10 +74,6 @@ class CoreExport UserManager : public fakederef */ user_hash uuidlist; - /** Local client list, a list containing only local clients - */ - LocalList local_users; - /** Oper list, a vector containing all local and remote opered users */ OperList all_opers; @@ -173,6 +173,11 @@ class CoreExport UserManager : public fakederef */ user_hash& GetUsers() { return clientlist; } + /** Get a list containing all local users + * @return A const list of local users + */ + const LocalList& GetLocalUsers() const { return local_users; } + /** Send a server notice to all local users * @param text The text format string to send * @param ... The format arguments -- cgit v1.2.3