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 /src/coremods/core_who.cpp | |
parent | adb26a4e882d317de4e4135f414b7002cafe07a4 (diff) |
Add UserManager::GetUsers()
Diffstat (limited to 'src/coremods/core_who.cpp')
-rw-r--r-- | src/coremods/core_who.cpp | 3 |
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())) { |