diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-03-15 15:21:18 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-03-15 15:21:18 +0100 |
commit | 66965131f834d14104ad618fd6d89bfd912cd120 (patch) | |
tree | 3090eefce9e5ca824edc376dc11f7f17f0a33be9 /include/usermanager.h | |
parent | adb26a4e882d317de4e4135f414b7002cafe07a4 (diff) |
Add UserManager::GetUsers()
Diffstat (limited to 'include/usermanager.h')
-rw-r--r-- | include/usermanager.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/usermanager.h b/include/usermanager.h index b1c3520e9..15d41e6bc 100644 --- a/include/usermanager.h +++ b/include/usermanager.h @@ -157,6 +157,11 @@ class CoreExport UserManager */ unsigned int LocalUserCount() const { return (this->local_users.size() - this->UnregisteredUserCount()); } + /** Get a hash map containing all users, keyed by their nickname + * @return A hash map mapping nicknames to User pointers + */ + user_hash& GetUsers() { return *clientlist; } + /** Send a server notice to all local users * @param text The text format string to send * @param ... The format arguments |