send "server is full" to clients trying to join reserved slots

This commit is contained in:
heinrich5991 2010-10-16 22:16:16 +02:00
parent 7f437f7245
commit de0f558ad4

View file

@ -680,7 +680,7 @@ void CServer::ProcessClientPacket(CNetChunk *pPacket)
// reserved slot
if(ClientId >= (g_Config.m_SvMaxClients-g_Config.m_SvReservedSlots) && g_Config.m_SvReservedSlotsPass[0] != 0 && strcmp(g_Config.m_SvReservedSlotsPass, pPassword) != 0)
{
m_NetServer.Drop(ClientId, "Dropped due reserved slot");
m_NetServer.Drop(ClientId, "This server is full");
return;
}