summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-07 19:18:46 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-07 19:18:46 +0000
commit990c9795ef193df913325558b18d1535109bc23e (patch)
tree43e340cff2647766d038289fa676f6da2b4adb65 /src/users.cpp
parent2bb1208eae529c1e87005626405e9dee86754077 (diff)
Whois typo fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3525 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/users.cpp b/src/users.cpp
index a50787a17..83800e01d 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -515,12 +515,13 @@ void AddWhoWas(userrec* u)
}
else
{
- if (iter->size() > 10)
+ whowas_set* group = (whowas_set*)iter->second;
+ if (group->size() > 10)
{
- iter->pop_front();
+ group->pop_front();
}
WhoWasGroup *a = new WhoWasGroup(u);
- iter->push_back(a);
+ group->push_back(a);
}
}
@@ -529,10 +530,10 @@ void MaintainWhoWas(time_t TIME)
{
for (whowas_users::iterator iter = whowas.begin(); iter != whowas.end(); iter++)
{
- whowas_set* n = (whowas_set*)iter;
+ whowas_set* n = (whowas_set*)iter->second;
if (n->size())
{
- while ((n->begin() != n->end()) && (n->begin()->signon < TIME - 259200)) // 3 days
+ while ((n->begin() != n->end()) && ((*n->begin())->signon < TIME - 259200)) // 3 days
{
WhoWasGroup *a = *(n->begin());
delete a;