Only output the 'AES on' message if the socket state isnt I_ERROR when its reached

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5337 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2006-09-26 16:48:31 +00:00
parent 8144a16f89
commit 5334998f27

View File

@ -704,6 +704,8 @@ class TreeSocket : public InspSocket
Instance->Log(DEBUG,"Key length not 16, 24 or 32 characters!");
}
else
{
if (this->GetState() != I_ERROR)
{
this->Instance->SNO->WriteToSnoMask('l',"\2AES\2: Initialized %d bit encryption to server %s",keylength*8,SName.c_str());
ctx_in->MakeKey(key.c_str(), "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
@ -712,6 +714,7 @@ class TreeSocket : public InspSocket
\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", keylength, keylength);
}
}
}
/** When an outbound connection finishes connecting, we receive
* this event, and must send our SERVER string to the other