From e5ada400b0f2e2ae02f40867450a6789126da6e3 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sat, 19 Jul 2014 14:28:51 +0200 Subject: Access local user list via new UserManager::GetLocalUsers() and make local_users private --- src/helperfuncs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/helperfuncs.cpp') diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 55a1b9f83..7b2a29f77 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -82,7 +82,8 @@ Channel* InspIRCd::FindChan(const std::string &chan) /* Send an error notice to all users, registered or not */ void InspIRCd::SendError(const std::string &s) { - for (UserManager::LocalList::const_iterator i = this->Users->local_users.begin(); i != this->Users->local_users.end(); ++i) + const UserManager::LocalList& list = Users.GetLocalUsers(); + for (UserManager::LocalList::const_iterator i = list.begin(); i != list.end(); ++i) { User* u = *i; if (u->registered == REG_ALL) -- cgit v1.3.1-10-gc9f91