1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 15:23:12 +02:00

Improve the layout of types that inherit from another type.

This commit is contained in:
Sadie Powell
2024-01-23 15:28:23 +00:00
parent 398d674cf4
commit a6a0f6c447
232 changed files with 1648 additions and 798 deletions
+13 -6
View File
@@ -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;