diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-07-19 14:28:51 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-07-19 14:28:51 +0200 |
commit | e5ada400b0f2e2ae02f40867450a6789126da6e3 (patch) | |
tree | 2bb90da3198a359c4c0ea95bf3bfc8731808f7a4 /src/modules/m_jumpserver.cpp | |
parent | bc8664c5c49f4ac9adbc5e3937a584e4a6b35614 (diff) |
Access local user list via new UserManager::GetLocalUsers() and make local_users private
Diffstat (limited to 'src/modules/m_jumpserver.cpp')
-rw-r--r-- | src/modules/m_jumpserver.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_jumpserver.cpp b/src/modules/m_jumpserver.cpp index 9ee224704..599144448 100644 --- a/src/modules/m_jumpserver.cpp +++ b/src/modules/m_jumpserver.cpp @@ -108,7 +108,8 @@ class CommandJumpserver : public Command if (redirect_all_immediately) { /* Redirect everyone but the oper sending the command */ - for (UserManager::LocalList::const_iterator i = ServerInstance->Users->local_users.begin(); i != ServerInstance->Users->local_users.end(); ++i) + const UserManager::LocalList& list = ServerInstance->Users.GetLocalUsers(); + for (UserManager::LocalList::const_iterator i = list.begin(); i != list.end(); ++i) { LocalUser* t = *i; if (!t->IsOper()) |