mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-11 11:39:02 -04:00
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:
parent
7cf9e842f4
commit
ee5cd9fa66
@ -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())
|
||||
|
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user