Remove extraneous check

Should not fire this code if that cvar is set.
This commit is contained in:
Kawe Mazidjatari 2023-09-17 17:19:32 +02:00
parent 71d0332dca
commit 5af364f325

View File

@ -578,7 +578,7 @@ void CRConServer::Disconnect(const char* szReason) // NETMGR
void CRConServer::Disconnect(const int nIndex, const char* szReason) // NETMGR
{
CConnectedNetConsoleData& data = m_Socket.GetAcceptedSocketData(nIndex);
if (data.m_bAuthorized || sv_rcon_debug->GetBool())
if (data.m_bAuthorized)
{
// Inform server owner when authenticated connection has been closed.
netadr_t netAdr = m_Socket.GetAcceptedSocketAddress(nIndex);