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/os_dns.cpp | |
parent | 398d674cf40c0dba4e4cd2edd0f325ace15128c2 (diff) |
Improve the layout of types that inherit from another type.
Diffstat (limited to 'modules/commands/os_dns.cpp')
-rw-r--r-- | modules/commands/os_dns.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/commands/os_dns.cpp b/modules/commands/os_dns.cpp index e82531ef6..003d22305 100644 --- a/modules/commands/os_dns.cpp +++ b/modules/commands/os_dns.cpp @@ -19,7 +19,8 @@ static Serialize::Checker<std::vector<DNSServer *> > dns_servers("DNSServer"); static std::map<Anope::string, std::list<time_t> > server_quit_times; -struct DNSZone : Serializable +struct DNSZone + : Serializable { Anope::string name; std::set<Anope::string, ci::less> servers; @@ -86,7 +87,8 @@ struct DNSZone : Serializable } }; -class DNSServer : public Serializable +class DNSServer + : public Serializable { Anope::string server_name; std::vector<Anope::string> ips; @@ -204,7 +206,8 @@ public: } }; -class CommandOSDNS : public Command +class CommandOSDNS + : public Command { void DisplayPoolState(CommandSource &source) { @@ -716,7 +719,8 @@ public: } }; -class ModuleDNS : public Module +class ModuleDNS + : public Module { Serialize::Type zone_type, dns_type; CommandOSDNS commandosdns; |