From 66965131f834d14104ad618fd6d89bfd912cd120 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sat, 15 Mar 2014 15:21:18 +0100 Subject: Add UserManager::GetUsers() --- include/usermanager.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') 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 -- cgit v1.2.3