]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/userprocess.cpp
Whoops, forgot some stuff for when GECOS was moved to position 10 in the UID command...
[user/henk/code/inspircd.git] / src / userprocess.cpp
index 818713f899a680ebc26e7043cef518d69ccf7a67..9c8b27267ecab151e43ec36afd89a74f0437da6f 100644 (file)
@@ -12,9 +12,6 @@
  */
 
 #include "inspircd.h"
-#include "configreader.h"
-#include "users.h"
-#include "modules.h"
 #include "wildcard.h"
 #include "xline.h"
 #include "socketengine.h"
@@ -195,8 +192,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 +280,4 @@ void InspIRCd::DoBackgroundUserStuff(time_t TIME)
                }
        }
 }
+