summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-23 23:06:37 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-23 23:06:37 +0000
commit74c8913f72e6d48c88a01155ef5fe5ca20cc2bb1 (patch)
tree500634864eb634a89af543a3f8b6f663543f5589 /include
parent6cc7cd76fbc809d6c0df55c061684581e31b6ebc (diff)
Hash rehashing change
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6080 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/inspircd.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 9f2ae630a..3d9002f53 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -401,11 +401,11 @@ class InspIRCd : public classbase
/** Client list, a hash_map containing all clients, local and remote
*/
- user_hash clientlist;
+ user_hash* clientlist;
/** Channel list, a hash_map containing all channels
*/
- chan_hash chanlist;
+ chan_hash* chanlist;
/** Local client list, a vector containing only local clients
*/
@@ -1129,6 +1129,12 @@ class InspIRCd : public classbase
*/
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();
+
/** Begin execution of the server.
* NOTE: this function NEVER returns. Internally,
* after performing some initialisation routines,