diff options
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 |