summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-04-04 19:23:16 +0200
committerattilamolnar <attilamolnar@hush.com>2013-04-04 19:23:16 +0200
commitbb3aa2fb37071f48a5312df8688c0a6990644fbb (patch)
treee48e8f3d6bac2f608e9ad18b6af88fc0a712e310 /include
parent7b823baf68b7512a36ac513f3c6b0d920776fa59 (diff)
Stop recreating hashmaps every hour, move garbage collection code related to local users to UserManager
Diffstat (limited to 'include')
-rw-r--r--include/inspircd.h6
-rw-r--r--include/usermanager.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 099b9dd87..2e1cfbd21 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -822,12 +822,6 @@ class CoreExport InspIRCd
*/
void Cleanup();
- /** This copies the user and channel hash_maps into new hash maps.
- * This frees memory used by the hash_map allocator (which it neglects
- * to free, most of the time, using tons of ram)
- */
- void RehashUsersAndChans();
-
/** Resets the cached max bans value on all channels.
* Called by rehash.
*/
diff --git a/include/usermanager.h b/include/usermanager.h
index 3d7fe88fb..812d8e2f2 100644
--- a/include/usermanager.h
+++ b/include/usermanager.h
@@ -70,6 +70,12 @@ class CoreExport UserManager
*/
clonemap global_clones;
+ /**
+ * Reset the already_sent IDs so we don't wrap it around and drop a message
+ * Also removes all expired invites
+ */
+ void GarbageCollect();
+
/** Add a client to the system.
* This will create a new User, insert it into the user_hash,
* initialize it as not yet registered, and add it to the socket engine.