diff options
author | Peter Powell <petpow@saberuk.com> | 2017-10-18 12:41:37 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2017-10-18 12:54:51 +0100 |
commit | ee7ac5aaede95eb82ecc948d0e52ad01ddeaa6c9 (patch) | |
tree | 434d2420c366a90baeb9e7d315ca3ea16d249d35 /src/modules/extra/m_ssl_openssl.cpp | |
parent | 3b927b48ccb30619d9ace318b5a7d21f2279abbf (diff) |
Clean up OnCleanup.
- Switch to using ExtensionItem::ExtensibleType for the type instead
of TargetTypeFlags.
- Pass the extensible to OnCleanup as an Extensible pointer
instead of a void pointer.
- Call OnCleanup for memberships as well as channels and users.
- Rewrite event documentation to remove outdated references.
Diffstat (limited to 'src/modules/extra/m_ssl_openssl.cpp')
-rw-r--r-- | src/modules/extra/m_ssl_openssl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp index 68f75c87f..4cd8ab29a 100644 --- a/src/modules/extra/m_ssl_openssl.cpp +++ b/src/modules/extra/m_ssl_openssl.cpp @@ -962,9 +962,9 @@ class ModuleSSLOpenSSL : public Module } } - void OnCleanup(int target_type, void* item) CXX11_OVERRIDE + void OnCleanup(ExtensionItem::ExtensibleType type, Extensible* item) CXX11_OVERRIDE { - if (target_type == TYPE_USER) + if (type == ExtensionItem::EXT_USER) { LocalUser* user = IS_LOCAL((User*)item); |