diff options
author | Luke Bratch <luke@bratch.co.uk> | 2019-12-22 20:16:57 +0000 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2019-12-22 20:16:57 +0000 |
commit | 0883de2c491a8c79aec13d25bab429aea4362a10 (patch) | |
tree | 1c1e1063697f8b5e19d706ef3813f76aad21b70e /structures.h | |
parent | 85dd88a180043e991c19a4c93a6ce5c7fe0a6e88 (diff) |
Significantly reduce memory usage by only initialising channel struct elements when they are used for the first time.
Diffstat (limited to 'structures.h')
-rw-r--r-- | structures.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/structures.h b/structures.h index 0fbebff..26b7439 100644 --- a/structures.h +++ b/structures.h @@ -55,6 +55,7 @@ struct ircdstate { int clientchangetime; // The last time a client registered or disconnected int clientsnonetime; // The last time there were no clients registered int launchtime; // The time blabouncer was launched + int maxchannelcount; // The maximum number of channels we've ever been in (so we know how much of the channels struct is initialised) }; // Structure of settings either to be read from the configuration file or set/changed at runtime |