From 2802a62272f4295ecc3bd73a44950749e8b96877 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 3 Jan 2007 20:58:21 +0000 Subject: 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 --- include/mode.h | 3 +++ include/users.h | 6 ++++++ 2 files changed, 9 insertions(+) (limited to 'include') 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. -- cgit v1.3.1-10-gc9f91