From 8509727e16f1d9ce6c9719c8d62c7715d3699858 Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 2 Feb 2008 22:57:28 +0000 Subject: Cache User::GetIPString() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8795 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/configreader.h | 4 ++++ include/users.h | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'include') diff --git a/include/configreader.h b/include/configreader.h index fb187048b..3759e909f 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -429,6 +429,10 @@ class CoreExport ServerConfig : public Extensible */ bool AllowHalfop; + /** If this value is true, users are allowed to devoice themselves. + */ + bool AllowDevoiceSelf; + /** If this is set to true, then mode lists (e.g * MODE #chan b) are hidden from unprivileged * users. 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 -- cgit v1.2.3