Admin protection closes #59

This commit is contained in:
GreYFoX 2011-07-20 02:41:11 +02:00
parent a6922db418
commit 959b11b13d

View file

@ -1908,7 +1908,7 @@ void CGameContext::OnSetAuthed(int ClientID, int Level)
m_apPlayers[ClientID]->m_Authed = Level;
char aBuf[512], aIP[20];
pServ->GetClientIP(ClientID, aIP, sizeof(aIP));
str_format(aBuf, sizeof(aBuf), "ban %s:0 %d Banned by vote", aIP, g_Config.m_SvVoteKickBantime);
str_format(aBuf, sizeof(aBuf), "ban %s %d Banned by vote", aIP, g_Config.m_SvVoteKickBantime);
if(!str_comp_nocase(m_aVoteCommand, aBuf) && Level > 0)
{
m_VoteEnforce = CGameContext::VOTE_ENFORCE_NO;