diff options
Diffstat (limited to 'src/modules/m_close.cpp')
-rw-r--r-- | src/modules/m_close.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_close.cpp b/src/modules/m_close.cpp index f8bac669d..f3c751f17 100644 --- a/src/modules/m_close.cpp +++ b/src/modules/m_close.cpp @@ -35,7 +35,8 @@ class CommandClose : public Command { std::map<std::string,int> closed; - for (UserManager::LocalList::const_iterator u = ServerInstance->Users->local_users.begin(); u != ServerInstance->Users->local_users.end(); ++u) + const UserManager::LocalList& list = ServerInstance->Users.GetLocalUsers(); + for (UserManager::LocalList::const_iterator u = list.begin(); u != list.end(); ++u) { LocalUser* user = *u; if (user->registered != REG_ALL) |