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_mode.cpp | |
parent | 398d674cf40c0dba4e4cd2edd0f325ace15128c2 (diff) |
Improve the layout of types that inherit from another type.
Diffstat (limited to 'modules/commands/cs_mode.cpp')
-rw-r--r-- | modules/commands/cs_mode.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/modules/commands/cs_mode.cpp b/modules/commands/cs_mode.cpp index 27cd08fcb..1cdec547a 100644 --- a/modules/commands/cs_mode.cpp +++ b/modules/commands/cs_mode.cpp @@ -12,7 +12,9 @@ #include "module.h" #include "modules/cs_mode.h" -struct ModeLockImpl : ModeLock, Serializable +struct ModeLockImpl + : ModeLock + , Serializable { ModeLockImpl() : Serializable("ModeLock") { @@ -33,7 +35,8 @@ struct ModeLockImpl : ModeLock, Serializable static Serializable* Unserialize(Serializable *obj, Serialize::Data &data); }; -struct ModeLocksImpl : ModeLocks +struct ModeLocksImpl + : ModeLocks { Serialize::Reference<ChannelInfo> ci; Serialize::Checker<ModeList> mlocks; @@ -241,7 +244,8 @@ Serializable* ModeLockImpl::Unserialize(Serializable *obj, Serialize::Data &data return ml; } -class CommandCSMode : public Command +class CommandCSMode + : public Command { bool CanSet(CommandSource &source, ChannelInfo *ci, ChannelMode *cm, bool self) { @@ -789,7 +793,8 @@ public: static Anope::map<std::pair<bool, Anope::string> > modes; -class CommandCSModes : public Command +class CommandCSModes + : public Command { public: CommandCSModes(Module *creator) : Command(creator, "chanserv/modes", 1, 2) @@ -906,7 +911,8 @@ public: } }; -class CSMode : public Module +class CSMode + : public Module { CommandCSMode commandcsmode; CommandCSModes commandcsmodes; |