summaryrefslogtreecommitdiff
path: root/modules/m_sasl.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/m_sasl.cpp
parent398d674cf40c0dba4e4cd2edd0f325ace15128c2 (diff)
Improve the layout of types that inherit from another type.
Diffstat (limited to 'modules/m_sasl.cpp')
-rw-r--r--modules/m_sasl.cpp19
1 files changed, 13 insertions, 6 deletions
diff --git a/modules/m_sasl.cpp b/modules/m_sasl.cpp
index 1951fb66c..a90a70e67 100644
--- a/modules/m_sasl.cpp
+++ b/modules/m_sasl.cpp
@@ -12,7 +12,8 @@
using namespace SASL;
-class Plain : public Mechanism
+class Plain
+ : public Mechanism
{
public:
Plain(Module *o) : Mechanism(o, "PLAIN") { }
@@ -72,11 +73,13 @@ public:
}
};
-class External : public Mechanism
+class External
+ : public Mechanism
{
ServiceReference<CertService> certs;
- struct Session : SASL::Session
+ struct Session
+ : SASL::Session
{
Anope::string cert;
@@ -134,7 +137,8 @@ public:
}
};
-class Anonymous : public Mechanism
+class Anonymous
+ : public Mechanism
{
public:
Anonymous(Module *o) : Mechanism(o, "ANONYMOUS") { }
@@ -170,7 +174,9 @@ public:
}
};
-class SASLService : public SASL::Service, public Timer
+class SASLService
+ : public SASL::Service
+ , public Timer
{
std::map<Anope::string, SASL::Session *> sessions;
@@ -347,7 +353,8 @@ public:
}
};
-class ModuleSASL : public Module
+class ModuleSASL
+ : public Module
{
SASLService sasl;