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_ajoin.cpp | |
parent | 398d674cf40c0dba4e4cd2edd0f325ace15128c2 (diff) |
Improve the layout of types that inherit from another type.
Diffstat (limited to 'modules/commands/ns_ajoin.cpp')
-rw-r--r-- | modules/commands/ns_ajoin.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/commands/ns_ajoin.cpp b/modules/commands/ns_ajoin.cpp index 9b63d6576..f28b1d0a1 100644 --- a/modules/commands/ns_ajoin.cpp +++ b/modules/commands/ns_ajoin.cpp @@ -13,13 +13,15 @@ struct AJoinEntry; -struct AJoinList : Serialize::Checker<std::vector<AJoinEntry *> > +struct AJoinList + : Serialize::Checker<std::vector<AJoinEntry *> > { AJoinList(Extensible *) : Serialize::Checker<std::vector<AJoinEntry *> >("AJoinEntry") { } ~AJoinList(); }; -struct AJoinEntry : Serializable +struct AJoinEntry + : Serializable { Serialize::Reference<NickCore> owner; Anope::string channel; @@ -86,7 +88,8 @@ AJoinList::~AJoinList() delete ajoin; } -class CommandNSAJoin : public Command +class CommandNSAJoin + : public Command { void DoList(CommandSource &source, NickCore *nc) { @@ -297,7 +300,8 @@ public: } }; -class NSAJoin : public Module +class NSAJoin + : public Module { CommandNSAJoin commandnsajoin; ExtensibleItem<AJoinList> ajoinlist; |