summaryrefslogtreecommitdiff
path: root/src/modules/m_close.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-11-21 00:15:13 +0100
committerattilamolnar <attilamolnar@hush.com>2012-11-29 23:41:22 +0100
commita589577b68cb84bc877ecdd4c0f9cb84a1581ddd (patch)
tree37a4f52f9bcac855d7fa2198f991a2fc919ea738 /src/modules/m_close.cpp
parent83db3dc06a44b50d8e25828e201a51edb4030d92 (diff)
Add a typedef for LocalUserList
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");