aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-04-05 15:48:26 +0100
committerGravatar Sadie Powell2022-04-05 15:51:10 +0100
commit9e3784dc0b5a192235cbb2b5fd862cd7315281a8 (patch)
tree195766bfb06e56e586cd7472f2fde5b679624046 /include
parentRemove a weird incorrect comment. (diff)
Fix converting a token list to a string.
Fixes showing oper privs in /CHECK.
Diffstat (limited to 'include')
-rw-r--r--include/token_list.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/token_list.h b/include/token_list.h
index c8e587e65..8472d5f6e 100644
--- a/include/token_list.h
+++ b/include/token_list.h
@@ -24,11 +24,14 @@
class CoreExport TokenList
{
private:
+ /** The underlying type of the token list. */
+ typedef insp::flat_set<std::string, irc::insensitive_swo> TokenMap;
+
/** Whether this list includes all tokens by default. */
bool permissive;
/** Either the tokens to exclude if in permissive mode or the tokens to include if in strict mode. */
- insp::flat_set<std::string, irc::insensitive_swo> tokens;
+ TokenMap tokens;
public:
TokenList()