From 7dbc0f8208614a1365b92500f21f55ea4c2b862c Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 15 Jan 2023 20:33:51 +0000 Subject: Constify config fields in cloak_sha256. --- src/modules/m_cloak_sha256.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/modules/m_cloak_sha256.cpp') diff --git a/src/modules/m_cloak_sha256.cpp b/src/modules/m_cloak_sha256.cpp index 8fdb88e2a..65c210843 100644 --- a/src/modules/m_cloak_sha256.cpp +++ b/src/modules/m_cloak_sha256.cpp @@ -53,16 +53,16 @@ private: static constexpr size_t segmentlen = 8; // Whether to cloak the hostname if available. - bool cloakhost; + const bool cloakhost; // The number of parts of the hostname shown. - unsigned long hostparts; + const unsigned long hostparts; // The secret used for generating cloaks. - std::string key; + const std::string key; // The prefix for cloaks (e.g. MyNet). - std::string prefix; + const std::string prefix; #ifdef HAS_LIBPSL // Handle to the Public Suffix List library. @@ -76,7 +76,7 @@ private: const unsigned char* table; // The suffix for IP cloaks (e.g. IP). - std::string suffix; + const std::string suffix; std::string CloakAddress(const irc::sockets::sockaddrs& sa) { @@ -272,7 +272,7 @@ private: static constexpr size_t minkeylen = 30; // Whether to cloak the hostname if available. - bool cloakhost; + const bool cloakhost; public: SHA256Engine(Module* Creator, const std::string& Name, bool ch) -- cgit v1.3.1-10-gc9f91