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