summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-02 22:57:28 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-02 22:57:28 +0000
commit8509727e16f1d9ce6c9719c8d62c7715d3699858 (patch)
tree68343ec18f5d0738c5fedaafc25d79fe5014edd0 /include
parent7f7e508640db92ce3535afe498bc1cc5a70a1cdd (diff)
Cache User::GetIPString()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8795 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/configreader.h4
-rw-r--r--include/users.h4
2 files changed, 8 insertions, 0 deletions
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