summaryrefslogtreecommitdiff
path: root/modules/commands/os_session.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_session.cpp
parent398d674cf40c0dba4e4cd2edd0f325ace15128c2 (diff)
Improve the layout of types that inherit from another type.
Diffstat (limited to 'modules/commands/os_session.cpp')
-rw-r--r--modules/commands/os_session.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/modules/commands/os_session.cpp b/modules/commands/os_session.cpp
index c04f507e4..8b746bb6d 100644
--- a/modules/commands/os_session.cpp
+++ b/modules/commands/os_session.cpp
@@ -35,7 +35,8 @@ namespace
unsigned ipv6_cidr;
}
-class MySessionService : public SessionService
+class MySessionService
+ : public SessionService
{
SessionMap Sessions;
Serialize::Checker<ExceptionVector> Exceptions;
@@ -126,7 +127,8 @@ public:
}
};
-class ExceptionDelCallback : public NumberList
+class ExceptionDelCallback
+ : public NumberList
{
protected:
CommandSource &source;
@@ -168,7 +170,8 @@ public:
}
};
-class CommandOSSession : public Command
+class CommandOSSession
+ : public Command
{
private:
void DoList(CommandSource &source, const std::vector<Anope::string> &params)
@@ -281,7 +284,8 @@ public:
}
};
-class CommandOSException : public Command
+class CommandOSException
+ : public Command
{
private:
void DoAdd(CommandSource &source, const std::vector<Anope::string> &params)
@@ -431,7 +435,8 @@ private:
if (!mask.empty() && mask.find_first_not_of("1234567890,-") == Anope::string::npos)
{
- class ExceptionListCallback : public NumberList
+ class ExceptionListCallback
+ : public NumberList
{
CommandSource &source;
ListFormatter &list;
@@ -577,7 +582,8 @@ public:
}
};
-class OSSession : public Module
+class OSSession
+ : public Module
{
Serialize::Type exception_type;
MySessionService ss;