From ba47c49a6c0f0c5c7fc84b6638dc1234e1589c71 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 15 Dec 2005 19:46:13 +0000 Subject: Added 'local users' vector git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2489 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/userprocess.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/userprocess.cpp') diff --git a/src/userprocess.cpp b/src/userprocess.cpp index 2eb7b7043..b5a5b6683 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -66,6 +66,7 @@ extern std::vector factory; extern std::vector module_sockets; extern time_t TIME; extern time_t OLDTIME; +extern std::vector local_users; extern InspIRCd* ServerInstance; extern SocketEngine* SE; @@ -264,12 +265,12 @@ bool DoBackgroundUserStuff(time_t TIME) } /* TODO: We need a seperate hash containing only local users for this */ - for (user_hash::iterator count2 = clientlist.begin(); count2 != clientlist.end(); count2++) + for (std::vector::iterator count2 = local_users.begin(); count2 != local_users.end(); count2++) { /* Sanity checks for corrupted iterators (yes, really) */ userrec* curr = NULL; - if (count2->second) - curr = count2->second; + if (*count2) + curr = (userrec*)(*count2); if ((long)curr == -1) return false; -- cgit v1.3.1-10-gc9f91