summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-30 19:30:53 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-30 19:30:53 +0000
commitd3e3a13ae6590fcbd8be09e168a2b002f2967368 (patch)
tree21f35e581714d601ea3d014b2afa5b9e76533bd1 /include
parent1102e2c921036d553358866c9309d2d1bffb3d12 (diff)
Cached GetFullRealHost etc.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6179 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/users.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/users.h b/include/users.h
index d24a93fca..719af2271 100644
--- a/include/users.h
+++ b/include/users.h
@@ -226,6 +226,11 @@ class userrec : public connection
/** Number of channels this user is currently on
*/
unsigned int ChannelCount;
+
+ char* cached_fullhost;
+ char* cached_hostip;
+ char* cached_makehost;
+ char* cached_fullrealhost;
public:
/** Resolvers for looking up this users IP address
* This will occur if and when res_reverse completes.
@@ -429,6 +434,11 @@ class userrec : public connection
*/
virtual char* GetFullRealHost();
+ /** This clears any cached results that are used for GetFullRealHost() etc.
+ * The results of these calls are cached as generating them can be generally expensive.
+ */
+ void InvalidateCache();
+
/** Create a displayable mode string for this users snomasks
* @return The notice mask character sequence
*/