diff options
| author | 2006-03-07 19:37:04 +0000 | |
|---|---|---|
| committer | 2006-03-07 19:37:04 +0000 | |
| commit | 4ae5336d9b1ee086301da10345e25b117880129d (patch) | |
| tree | 607a39ff178c009cffceb9eb66b70c59ad6d967e /src/users.cpp | |
| parent | Too 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.cpp | 2 |
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); |
