aboutsummaryrefslogtreecommitdiffstats
path: root/include/users.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-04-30 14:47:39 +0100
committerGravatar Sadie Powell2022-04-30 14:47:39 +0100
commit0e7883dd962f16bbac1dd0b4b6a33de3c19ceca1 (patch)
tree920e48fe77edffaa8fa6143ac921e5f08daf2eeb /include/users.h
parentMake the extban enums 8-bit. (diff)
Format enums with an underlying type like classes.
Diffstat (limited to 'include/users.h')
-rw-r--r--include/users.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/users.h b/include/users.h
index 484b24156..a249b6da6 100644
--- a/include/users.h
+++ b/include/users.h
@@ -62,7 +62,8 @@ public:
typedef std::shared_ptr<ConnectClass> Ptr;
/** An enumeration of possible types of connect class. */
- enum Type : uint8_t
+ enum Type
+ : uint8_t
{
/** The class defines who is allowed to connect to the server. */
ALLOW = 0,
@@ -282,7 +283,8 @@ public:
};
/** An enumeration of all possible types of user. */
- enum Type : uint8_t
+ enum Type
+ : uint8_t
{
/** The user is connected to the local server. */
TYPE_LOCAL = 0,