removed a duplicate server register message. Closes #956

This commit is contained in:
oy 2012-04-22 13:43:02 +02:00
parent e5293620f4
commit ac8c9b464e

View file

@ -263,7 +263,7 @@ int CRegister::RegisterProcessPacket(CNetChunk *pPacket)
else if(pPacket->m_DataSize == sizeof(SERVERBROWSE_FWOK) &&
mem_comp(pPacket->m_pData, SERVERBROWSE_FWOK, sizeof(SERVERBROWSE_FWOK)) == 0)
{
if(m_RegisterFirst)
if(m_RegisterFirst && m_RegisterState != REGISTERSTATE_REGISTERED)
m_pConsole->Print(IConsole::OUTPUT_LEVEL_STANDARD, "register", "no firewall/nat problems detected");
RegisterNewState(REGISTERSTATE_REGISTERED);
return 1;