From ee5cd9fa66b339f17d6167c91388e032c9f8a19f Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 17 Jan 2009 20:03:38 +0000 Subject: 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 --- src/modules/extra/m_ssl_gnutls.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/extra/m_ssl_gnutls.cpp') diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index 2f596b50f..96f35e14b 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -746,7 +746,7 @@ class ModuleSSLGnuTLS : 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"); @@ -772,7 +772,7 @@ class ModuleSSLGnuTLS : 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()) -- cgit v1.2.3