diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-07-19 14:28:51 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-07-19 14:28:51 +0200 |
commit | e5ada400b0f2e2ae02f40867450a6789126da6e3 (patch) | |
tree | 2bb90da3198a359c4c0ea95bf3bfc8731808f7a4 /include | |
parent | bc8664c5c49f4ac9adbc5e3937a584e4a6b35614 (diff) |
Access local user list via new UserManager::GetLocalUsers() and make local_users private
Diffstat (limited to 'include')
-rw-r--r-- | include/usermanager.h | 13 |
1 files changed, 9 insertions, 4 deletions
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<UserManager> */ 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<UserManager> */ 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<UserManager> */ 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 |