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/ns_suspend.cpp | |
parent | 398d674cf40c0dba4e4cd2edd0f325ace15128c2 (diff) |
Improve the layout of types that inherit from another type.
Diffstat (limited to 'modules/commands/ns_suspend.cpp')
-rw-r--r-- | modules/commands/ns_suspend.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/modules/commands/ns_suspend.cpp b/modules/commands/ns_suspend.cpp index 32de2048e..c5cc2f2e5 100644 --- a/modules/commands/ns_suspend.cpp +++ b/modules/commands/ns_suspend.cpp @@ -14,7 +14,9 @@ static ServiceReference<NickServService> nickserv("NickServService", "NickServ"); -struct NSSuspendInfo : SuspendInfo, Serializable +struct NSSuspendInfo + : SuspendInfo + , Serializable { NSSuspendInfo(Extensible *) : Serializable("NSSuspendInfo") { } @@ -52,7 +54,8 @@ struct NSSuspendInfo : SuspendInfo, Serializable } }; -class CommandNSSuspend : public Command +class CommandNSSuspend + : public Command { public: CommandNSSuspend(Module *creator) : Command(creator, "nickserv/suspend", 2, 3) @@ -150,7 +153,8 @@ public: } }; -class CommandNSUnSuspend : public Command +class CommandNSUnSuspend + : public Command { public: CommandNSUnSuspend(Module *creator) : Command(creator, "nickserv/unsuspend", 1, 1) @@ -199,7 +203,8 @@ public: } }; -class NSSuspend : public Module +class NSSuspend + : public Module { CommandNSSuspend commandnssuspend; CommandNSUnSuspend commandnsunsuspend; |