From e4efd41a99e1237b61336555af0398ef5f634a4d Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 30 Sep 2022 20:21:59 +0100 Subject: Use a global typedef for representing a character set. --- src/modules/m_codepage.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/modules/m_codepage.cpp') diff --git a/src/modules/m_codepage.cpp b/src/modules/m_codepage.cpp index e6ff7a919..350ec617c 100644 --- a/src/modules/m_codepage.cpp +++ b/src/modules/m_codepage.cpp @@ -88,13 +88,11 @@ class SingleByteCodepage final : public Codepage { private: - typedef std::bitset AllowedChars; - // The characters which are allowed in nicknames. - AllowedChars allowedchars; + CharState allowedchars; // The characters which are allowed at the front of a nickname. - AllowedChars allowedfrontchars; + CharState allowedfrontchars; public: AllowCharacterResult AllowCharacter(uint32_t character, bool front) override -- cgit v1.3.1-10-gc9f91