diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-02 22:57:28 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-02 22:57:28 +0000 |
commit | 8509727e16f1d9ce6c9719c8d62c7715d3699858 (patch) | |
tree | 68343ec18f5d0738c5fedaafc25d79fe5014edd0 /include/users.h | |
parent | 7f7e508640db92ce3535afe498bc1cc5a70a1cdd (diff) |
Cache User::GetIPString()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8795 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/users.h')
-rw-r--r-- | include/users.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/users.h b/include/users.h index 3d98f9632..b9b23eaef 100644 --- a/include/users.h +++ b/include/users.h @@ -655,6 +655,10 @@ class CoreExport User : public connection * GetIPString/GetPort to obtain its values. */ sockaddr* ip; + + /** Set by GetIPString() to avoid constantly re-grabbing IP via sockets voodoo. + */ + std::string cachedip; /** Initialize the clients sockaddr * @param protocol_family The protocol family of the IP address, AF_INET or AF_INET6 |