summaryrefslogtreecommitdiff
path: root/modules/commands/os_info.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-01-23 15:28:23 +0000
committerSadie Powell <sadie@witchery.services>2024-01-23 15:28:23 +0000
commita6a0f6c44780c839b2269f4f29a26ecfdbd95544 (patch)
treed4d1fded5c14350eb003a665ca8de500a0440cea /modules/commands/os_info.cpp
parent398d674cf40c0dba4e4cd2edd0f325ace15128c2 (diff)
Improve the layout of types that inherit from another type.
Diffstat (limited to 'modules/commands/os_info.cpp')
-rw-r--r--modules/commands/os_info.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/commands/os_info.cpp b/modules/commands/os_info.cpp
index 2536e2251..c5036e04a 100644
--- a/modules/commands/os_info.cpp
+++ b/modules/commands/os_info.cpp
@@ -8,7 +8,8 @@
#include "module.h"
-struct OperInfo : Serializable
+struct OperInfo
+ : Serializable
{
Anope::string target;
Anope::string info;
@@ -32,7 +33,8 @@ struct OperInfo : Serializable
static Serializable *Unserialize(Serializable *obj, Serialize::Data &data);
};
-struct OperInfos : Serialize::Checker<std::vector<OperInfo *> >
+struct OperInfos
+ : Serialize::Checker<std::vector<OperInfo *> >
{
OperInfos(Extensible *) : Serialize::Checker<std::vector<OperInfo *> >("OperInfo") { }
@@ -93,7 +95,8 @@ Serializable *OperInfo::Unserialize(Serializable *obj, Serialize::Data &data)
return o;
}
-class CommandOSInfo : public Command
+class CommandOSInfo
+ : public Command
{
public:
CommandOSInfo(Module *creator) : Command(creator, "operserv/info", 2, 3)
@@ -245,7 +248,8 @@ public:
}
};
-class OSInfo : public Module
+class OSInfo
+ : public Module
{
CommandOSInfo commandosinfo;
ExtensibleItem<OperInfos> oinfo;