mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 18:18:18 +00:00
Admin protection closes #59
This commit is contained in:
parent
a6922db418
commit
959b11b13d
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue