diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-01-17 20:03:38 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-01-17 20:03:38 +0000 |
commit | ee5cd9fa66b339f17d6167c91388e032c9f8a19f (patch) | |
tree | 6f661aa607e02eb452836c34926596bcd4fc724a /src/modules/extra/m_ssl_openssl.cpp | |
parent | 7cf9e842f4f8ab870afaa5bd9cd95fd6cb8f5fa5 (diff) |
Fix for bug #679 reported by Namegduf, based on suggestion for fix by dz, thanks!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10966 e03df62e-2008-0410-955e-edbf42e46eb7
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 d3b557bed..4beefae10 100644 --- a/src/modules/extra/m_ssl_openssl.cpp +++ b/src/modules/extra/m_ssl_openssl.cpp @@ -775,7 +775,7 @@ class ModuleSSLOpenSSL : public Module { // This occurs AFTER OnUserConnect so we can be sure the // protocol module has propagated the NICK message. - if ((user->GetExt("ssl", dummy)) && (IS_LOCAL(user))) + if ((user->GetIOHook() == this) && (IS_LOCAL(user))) { // Tell whatever protocol module we're using that we need to inform other servers of this metadata NOW. ServerInstance->PI->SendMetaData(user, TYPE_USER, "SSL", "on"); @@ -798,7 +798,7 @@ class ModuleSSLOpenSSL : public Module virtual void OnBufferFlushed(User* user) { - if (user->GetExt("ssl")) + if (user->GetIOHook() == this) { issl_session* session = &sessions[user->GetFd()]; if (session && session->outbuf.size()) |