summaryrefslogtreecommitdiff
path: root/src/modules/m_close.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_close.cpp')
-rw-r--r--src/modules/m_close.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/m_close.cpp b/src/modules/m_close.cpp
index ec02b6464..5a6e7e963 100644
--- a/src/modules/m_close.cpp
+++ b/src/modules/m_close.cpp
@@ -36,10 +36,9 @@ class CommandClose : public Command
{
std::map<std::string,int> closed;
- std::vector<LocalUser*>::reverse_iterator u = ServerInstance->Users->local_users.rbegin();
- while (u != ServerInstance->Users->local_users.rend())
+ for (LocalUserList::const_iterator u = ServerInstance->Users->local_users.begin(); u != ServerInstance->Users->local_users.end(); ++u)
{
- LocalUser* user = *u++;
+ LocalUser* user = *u;
if (user->registered != REG_ALL)
{
ServerInstance->Users->QuitUser(user, "Closing all unknown connections per request");