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
This commit is contained in:
brain 2009-01-17 20:03:38 +00:00
parent 7cf9e842f4
commit ee5cd9fa66
2 changed files with 4 additions and 4 deletions

View File

@ -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())

View File

@ -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())