diff options
| author | 2006-12-30 19:30:53 +0000 | |
|---|---|---|
| committer | 2006-12-30 19:30:53 +0000 | |
| commit | d3e3a13ae6590fcbd8be09e168a2b002f2967368 (patch) | |
| tree | 21f35e581714d601ea3d014b2afa5b9e76533bd1 /include | |
| parent | This is a longshot, pls test AnnMaster. (diff) | |
| download | inspircd++-d3e3a13ae6590fcbd8be09e168a2b002f2967368.tar.gz inspircd++-d3e3a13ae6590fcbd8be09e168a2b002f2967368.tar.bz2 inspircd++-d3e3a13ae6590fcbd8be09e168a2b002f2967368.zip | |
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.h | 10 |
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 */ |
