summaryrefslogtreecommitdiff
path: root/include/usermanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/usermanager.h')
-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