summaryrefslogtreecommitdiff
path: root/src/userprocess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r--src/userprocess.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index 818713f89..78a0bc31f 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -195,8 +195,7 @@ void InspIRCd::DoBackgroundUserStuff(time_t TIME)
const time_t DUMMY_VALUE = 32768;
next_call = TIME + DUMMY_VALUE;
- /* XXX: IT IS NOT SAFE TO USE AN ITERATOR HERE. DON'T EVEN THINK ABOUT IT. */
- for (std::vector<userrec*>::iterator count2 = local_users.begin(); count2 != local_users.end(); ++count2)
+ for (std::vector<userrec*>::iterator count2 = local_users.begin(); count2 != local_users.end(); count2++)
{
userrec* curr = *count2;
@@ -284,3 +283,4 @@ void InspIRCd::DoBackgroundUserStuff(time_t TIME)
}
}
}
+