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/cs_seen.cpp | |
parent | 398d674cf40c0dba4e4cd2edd0f325ace15128c2 (diff) |
Improve the layout of types that inherit from another type.
Diffstat (limited to 'modules/commands/cs_seen.cpp')
-rw-r--r-- | modules/commands/cs_seen.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/commands/cs_seen.cpp b/modules/commands/cs_seen.cpp index bf7f9f853..378d78105 100644 --- a/modules/commands/cs_seen.cpp +++ b/modules/commands/cs_seen.cpp @@ -22,7 +22,8 @@ static SeenInfo *FindInfo(const Anope::string &nick); typedef Anope::hash_map<SeenInfo *> database_map; database_map database; -struct SeenInfo : Serializable +struct SeenInfo + : Serializable { Anope::string nick; Anope::string vhost; @@ -109,7 +110,8 @@ static bool ShouldHide(const Anope::string &channel, User *u) return false; } -class CommandOSSeen : public Command +class CommandOSSeen + : public Command { public: CommandOSSeen(Module *creator) : Command(creator, "operserv/seen", 1, 2) @@ -180,7 +182,8 @@ public: } }; -class CommandSeen : public Command +class CommandSeen + : public Command { void SimpleSeen(CommandSource &source, const std::vector<Anope::string> ¶ms) { @@ -368,7 +371,8 @@ public: } }; -class CSSeen : public Module +class CSSeen + : public Module { Serialize::Type seeninfo_type; CommandSeen commandseen; |