summaryrefslogtreecommitdiff
path: root/src/userprocess.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-15 19:46:13 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-15 19:46:13 +0000
commitba47c49a6c0f0c5c7fc84b6638dc1234e1589c71 (patch)
treed07321dbcf811f9b8cb4859055425b8bfb4163c0 /src/userprocess.cpp
parent03b51e9cb691848f9906e7dc8dca4894c60e5bcc (diff)
Added 'local users' vector
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2489 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r--src/userprocess.cpp7
1 files changed, 4 insertions, 3 deletions
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<ircd_module*> factory;
extern std::vector<InspSocket*> module_sockets;
extern time_t TIME;
extern time_t OLDTIME;
+extern std::vector<userrec*> 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<userrec*>::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;