diff options
Diffstat (limited to 'include/channels.h')
-rw-r--r-- | include/channels.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/channels.h b/include/channels.h index 633d7edef..9b74c546d 100644 --- a/include/channels.h +++ b/include/channels.h @@ -101,6 +101,10 @@ class chanrec : public Extensible * Plugins may use this field in any way they see fit. */ char custom_modes[MAXMODES]; /* modes handled by modules */ + + /** Count of users on the channel used for fast user counting + */ + long users; /** Channel topic. * If this is an empty string, no channel topic is set. @@ -178,6 +182,11 @@ class chanrec : public Extensible */ std::string GetModeParameter(char mode); + void IncUserCounter(); + void DecUserCounter(); + long GetUserCounter(); + + /** Creates a channel record and initialises it with default values */ chanrec(); |