diff options
| author | 2007-07-27 17:20:41 +0000 | |
|---|---|---|
| committer | 2007-07-27 17:20:41 +0000 | |
| commit | 156c232d1d22568d20ec498c4bd344bf03052e4a (patch) | |
| tree | 8ed920712146b182ef5c95604a597a808ca604a6 /src/userprocess.cpp | |
| parent | Needs testbuilding in windows. I will probably do this in a minute. (diff) | |
Found the bug, turns out i just introduced it with the last commit :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7591 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/userprocess.cpp')
| -rw-r--r-- | src/userprocess.cpp | 4 |
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) } } } + |
