summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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
*/