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_xop.cpp | |
parent | 398d674cf40c0dba4e4cd2edd0f325ace15128c2 (diff) |
Improve the layout of types that inherit from another type.
Diffstat (limited to 'modules/commands/cs_xop.cpp')
-rw-r--r-- | modules/commands/cs_xop.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/modules/commands/cs_xop.cpp b/modules/commands/cs_xop.cpp index 107b86151..7b0b8fd0c 100644 --- a/modules/commands/cs_xop.cpp +++ b/modules/commands/cs_xop.cpp @@ -17,7 +17,8 @@ namespace std::map<Anope::string, std::vector<Anope::string> > permissions; } -class XOPChanAccess : public ChanAccess +class XOPChanAccess + : public ChanAccess { public: Anope::string type; @@ -84,7 +85,8 @@ public: } }; -class XOPAccessProvider : public AccessProvider +class XOPAccessProvider + : public AccessProvider { public: XOPAccessProvider(Module *o) : AccessProvider(o, "access/xop") @@ -97,7 +99,8 @@ public: } }; -class CommandCSXOP : public Command +class CommandCSXOP + : public Command { private: void DoAdd(CommandSource &source, ChannelInfo *ci, const std::vector<Anope::string> ¶ms) @@ -291,7 +294,8 @@ private: /* Special case: is it a number/list? Only do search if it isn't. */ if (isdigit(mask[0]) && mask.find_first_not_of("1234567890,-") == Anope::string::npos) { - class XOPDelCallback : public NumberList + class XOPDelCallback + : public NumberList { CommandSource &source; ChannelInfo *ci; @@ -394,7 +398,8 @@ private: if (!nick.empty() && nick.find_first_not_of("1234567890,-") == Anope::string::npos) { - class XOPListCallback : public NumberList + class XOPListCallback + : public NumberList { ListFormatter &list; ChannelInfo *ci; @@ -595,7 +600,8 @@ public: } }; -class CSXOP : public Module +class CSXOP + : public Module { XOPAccessProvider accessprovider; CommandCSXOP commandcsxop; |