summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-03 20:58:21 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-03 20:58:21 +0000
commit2802a62272f4295ecc3bd73a44950749e8b96877 (patch)
tree05e5e96e2894fea4943d087ff165fc981d73b838 /include
parentc218d8091fd673632e0bae5f416d523b81100904 (diff)
Fix lusers breakage introduced by latest set of optimizations
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6219 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/mode.h3
-rw-r--r--include/users.h6
2 files changed, 9 insertions, 0 deletions
diff --git a/include/mode.h b/include/mode.h
index d28b03529..2875d853e 100644
--- a/include/mode.h
+++ b/include/mode.h
@@ -171,6 +171,9 @@ class ModeHandler : public Extensible
/** Get number of items with this mode set on them
*/
virtual unsigned int GetCount();
+ /** Adjust usage count returned by GetCount
+ */
+ virtual void ChangeCount(int modifier);
/**
* Get the 'value' of this modes prefix.
* determines which to display when there are multiple.
diff --git a/include/users.h b/include/users.h
index 719af2271..6e79cf285 100644
--- a/include/users.h
+++ b/include/users.h
@@ -231,6 +231,12 @@ class userrec : public connection
char* cached_hostip;
char* cached_makehost;
char* cached_fullrealhost;
+
+ /** When we erase the user (in the destructor),
+ * we call this method to subtract one from all
+ * mode characters this user is making use of.
+ */
+ void DecrementModes();
public:
/** Resolvers for looking up this users IP address
* This will occur if and when res_reverse completes.