aboutsummaryrefslogtreecommitdiffstats
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-03-07 19:37:04 +0000
committerGravatar brain2006-03-07 19:37:04 +0000
commit4ae5336d9b1ee086301da10345e25b117880129d (patch)
tree607a39ff178c009cffceb9eb66b70c59ad6d967e /src/users.cpp
parentToo many 'end of whowas' numerics (diff)
Flush user buffers more often (every 30 iterations)
Run whowas hash maintainance every hour git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3527 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 83800e01d..94ed97d93 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -518,6 +518,8 @@ void AddWhoWas(userrec* u)
whowas_set* group = (whowas_set*)iter->second;
if (group->size() > 10)
{
+ WhoWasGroup *a = (WhoWasGroup*)*(group->begin());
+ delete a;
group->pop_front();
}
WhoWasGroup *a = new WhoWasGroup(u);