diff options
author | Sadie Powell <sadie@witchery.services> | 2024-01-23 15:28:23 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-01-23 15:28:23 +0000 |
commit | a6a0f6c44780c839b2269f4f29a26ecfdbd95544 (patch) | |
tree | d4d1fded5c14350eb003a665ca8de500a0440cea /modules/commands/hs_request.cpp | |
parent | 398d674cf40c0dba4e4cd2edd0f325ace15128c2 (diff) |
Improve the layout of types that inherit from another type.
Diffstat (limited to 'modules/commands/hs_request.cpp')
-rw-r--r-- | modules/commands/hs_request.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/modules/commands/hs_request.cpp b/modules/commands/hs_request.cpp index 8e63f2b9d..361e4a8f7 100644 --- a/modules/commands/hs_request.cpp +++ b/modules/commands/hs_request.cpp @@ -20,7 +20,8 @@ static ServiceReference<MemoServService> memoserv("MemoServService", "MemoServ") static void req_send_memos(Module *me, CommandSource &source, const Anope::string &vIdent, const Anope::string &vHost); -struct HostRequest : Serializable +struct HostRequest + : Serializable { Anope::string nick; Anope::string ident; @@ -63,7 +64,8 @@ struct HostRequest : Serializable } }; -class CommandHSRequest : public Command +class CommandHSRequest + : public Command { bool isvalidchar(char c) { @@ -185,7 +187,8 @@ public: } }; -class CommandHSActivate : public Command +class CommandHSActivate + : public Command { public: CommandHSActivate(Module *creator) : Command(creator, "hostserv/activate", 1, 1) @@ -234,7 +237,8 @@ public: } }; -class CommandHSReject : public Command +class CommandHSReject + : public Command { public: CommandHSReject(Module *creator) : Command(creator, "hostserv/reject", 1, 2) @@ -290,7 +294,8 @@ public: } }; -class CommandHSWaiting : public Command +class CommandHSWaiting + : public Command { public: CommandHSWaiting(Module *creator) : Command(creator, "hostserv/waiting", 0, 0) @@ -348,7 +353,8 @@ public: } }; -class HSRequest : public Module +class HSRequest + : public Module { CommandHSRequest commandhsrequest; CommandHSActivate commandhsactive; |