From 90b9864a0ec58f1ad5afdd9bdd7dc51039c23562 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 26 Apr 2005 15:14:05 +0000 Subject: Added channel 'counter', increases speed of quits, parts, kicks git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1194 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/channels.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/channels.h') 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(); -- cgit v1.2.3