From c24a7435b8171db15c719af119e708bfd9b719bc Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 14 May 2021 14:26:46 +0100 Subject: Fix an off by one error in various bitsets. --- include/modules/who.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/modules/who.h b/include/modules/who.h index 36aecbc03..d5fcba977 100644 --- a/include/modules/who.h +++ b/include/modules/who.h @@ -51,8 +51,10 @@ class Who::EventListener : public Events::ModuleEventListener class Who::Request { public: + typedef std::bitset CharState; + /** The flags for matching users to include. */ - std::bitset flags; + CharState flags; /** Whether we are matching using a wildcard or a flag. */ bool fuzzy_match; @@ -67,7 +69,7 @@ class Who::Request bool whox; /** The fields to include in the WHOX response. */ - std::bitset whox_fields; + CharState whox_fields; /** A user specified label for the WHOX response. */ std::string whox_querytype; -- cgit v1.2.3