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/modules/m_tline.cpp | |
parent | adb26a4e882d317de4e4135f414b7002cafe07a4 (diff) |
Add UserManager::GetUsers()
Diffstat (limited to 'src/modules/m_tline.cpp')
-rw-r--r-- | src/modules/m_tline.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_tline.cpp b/src/modules/m_tline.cpp index 64beb3120..77ec0e26c 100644 --- a/src/modules/m_tline.cpp +++ b/src/modules/m_tline.cpp @@ -36,7 +36,8 @@ class CommandTline : public Command unsigned int n_match_host = 0; unsigned int n_match_ip = 0; - for (user_hash::const_iterator u = ServerInstance->Users->clientlist->begin(); u != ServerInstance->Users->clientlist->end(); u++) + const user_hash& users = ServerInstance->Users->GetUsers(); + for (user_hash::const_iterator u = users.begin(); u != users.end(); ++u) { if (InspIRCd::Match(u->second->GetFullRealHost(),parameters[0])) { @@ -54,7 +55,7 @@ class CommandTline : public Command } } - unsigned long n_counted = ServerInstance->Users->clientlist->size(); + unsigned long n_counted = users.size(); if (n_matched) { float p = (n_matched / (float)n_counted) * 100; |