X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fuserprocess.cpp;h=4fcf87f66e5db1c28113630334d47b940fc49b9a;hb=fe7ce903b838912a34de9e1530dd9ca45af5aed3;hp=d66e548c9e3e2f894975267e153704097bc177a9;hpb=b6dbd6caab62bc2c0d11ce5a45d511611eb9c2ef;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/userprocess.cpp b/src/userprocess.cpp index d66e548c9..4fcf87f66 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -142,9 +142,11 @@ void InspIRCd::DoBackgroundUserStuff() /* * loop over all local users.. */ - for (std::vector::iterator count2 = this->Users->local_users.begin(); count2 != this->Users->local_users.end(); count2++) + std::vector::reverse_iterator count2 = this->Users->local_users.rbegin(); + while (count2 != this->Users->local_users.rend()) { User *curr = *count2; + count2++; if (curr->quitting) continue;