aboutsummaryrefslogtreecommitdiffstats
path: root/src/cull.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cull.cpp')
-rw-r--r--src/cull.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cull.cpp b/src/cull.cpp
index 9a6665a29..4c0d2a92b 100644
--- a/src/cull.cpp
+++ b/src/cull.cpp
@@ -69,9 +69,8 @@ void CullList::Apply()
while (!SQlist.empty())
{
working.swap(SQlist);
- for(std::vector<LocalUser *>::iterator a = working.begin(); a != working.end(); a++)
+ for (const auto& u : working)
{
- LocalUser *u = *a;
ServerInstance->SNO.WriteGlobalSno('a', "User %s SendQ exceeds connect class maximum of %lu",
u->nick.c_str(), u->GetClass()->GetSendqHardMax());
ServerInstance->Users.QuitUser(u, "SendQ exceeded");