Fixed VoteKick

This commit is contained in:
GreYFoXGTi 2010-10-31 05:35:01 +02:00
parent 862c6544c5
commit 6dc504b995

View file

@ -1381,7 +1381,7 @@ void CServer::ConBan(IConsole::IResult *pResult, void *pUser, int ClientId1)
Addr.port = Temp.port = 0; Addr.port = Temp.port = 0;
if(net_addr_comp(&Addr, &Temp) == 0) if(net_addr_comp(&Addr, &Temp) == 0)
{ {
if (((CServer *)pUser)->m_aClients[ClientId1].m_Authed <= ((CServer *)pUser)->m_aClients[i].m_Authed) if ((((CServer *)pUser)->m_aClients[ClientId1].m_Authed > 0) && ((CServer *)pUser)->m_aClients[ClientId1].m_Authed <= ((CServer *)pUser)->m_aClients[i].m_Authed)
{ {
pServer->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "server", "you can't ban an a player with the higher or same rank!"); pServer->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "server", "you can't ban an a player with the higher or same rank!");
return; return;