summaryrefslogtreecommitdiff
path: root/src/coremods/core_who.cpp
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 /src/coremods/core_who.cpp
parentadb26a4e882d317de4e4135f414b7002cafe07a4 (diff)
Add UserManager::GetUsers()
Diffstat (limited to 'src/coremods/core_who.cpp')
-rw-r--r--src/coremods/core_who.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/coremods/core_who.cpp b/src/coremods/core_who.cpp
index dc39e296c..523d857ce 100644
--- a/src/coremods/core_who.cpp
+++ b/src/coremods/core_who.cpp
@@ -365,7 +365,8 @@ CmdResult CommandWho::Handle (const std::vector<std::string>& parameters, User *
}
else
{
- for (user_hash::iterator i = ServerInstance->Users->clientlist->begin(); i != ServerInstance->Users->clientlist->end(); i++)
+ const user_hash& users = ServerInstance->Users->GetUsers();
+ for (user_hash::const_iterator i = users.begin(); i != users.end(); ++i)
{
if (whomatch(user, i->second, matchtext.c_str()))
{