summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-03-15 15:21:18 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-03-15 15:21:18 +0100
commit66965131f834d14104ad618fd6d89bfd912cd120 (patch)
tree3090eefce9e5ca824edc376dc11f7f17f0a33be9 /include
parentadb26a4e882d317de4e4135f414b7002cafe07a4 (diff)
Add UserManager::GetUsers()
Diffstat (limited to 'include')
-rw-r--r--include/usermanager.h5
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