diff options
-rw-r--r-- | src/modules/m_sslinfo.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp index 5d4b8c3c0..0f1f04e99 100644 --- a/src/modules/m_sslinfo.cpp +++ b/src/modules/m_sslinfo.cpp @@ -83,6 +83,14 @@ class ModuleSSLInfo : public Module return Version("$Id$", VF_VENDOR, API_VERSION); } + virtual void OnCleanup(int target_type, void* item) + { + if (target_type != TYPE_USER) + return; + User* user = static_cast<User*>(item); + user->Shrink("ssl_cert"); + } + virtual void OnWhois(User* source, User* dest) { if(dest->GetExt("ssl")) |