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 /include/modules/os_session.h | |
| parent | 398d674cf40c0dba4e4cd2edd0f325ace15128c2 (diff) | |
Improve the layout of types that inherit from another type.
Diffstat (limited to 'include/modules/os_session.h')
| -rw-r--r-- | include/modules/os_session.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/modules/os_session.h b/include/modules/os_session.h index f72e6b8b2..5341b4fe0 100644 --- a/include/modules/os_session.h +++ b/include/modules/os_session.h @@ -17,7 +17,8 @@ struct Session Session(const sockaddrs &ip, int len) : addr(ip, len) { } }; -struct Exception : Serializable +struct Exception + : Serializable { Anope::string mask; /* Hosts to which this exception applies */ unsigned limit; /* Session limit for exception */ @@ -31,7 +32,8 @@ struct Exception : Serializable static Serializable* Unserialize(Serializable *obj, Serialize::Data &data); }; -class SessionService : public Service +class SessionService + : public Service { public: typedef std::unordered_map<cidr, Session *, cidr::hash> SessionMap; |
