mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fixed vote abortion by admin login
This commit is contained in:
parent
c37bad0be8
commit
7c6d405e2a
|
@ -1897,8 +1897,8 @@ 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 %d Banned by vote", aIP, g_Config.m_SvVoteKickBantime);
|
||||
if(!str_comp_nocase(m_aVoteCommand,aBuf) && Level > 0)
|
||||
str_format(aBuf, sizeof(aBuf), "ban %s:0 %d Banned by vote", aIP, g_Config.m_SvVoteKickBantime);
|
||||
if(!str_comp_nocase(m_aVoteCommand, aBuf) && Level > 0)
|
||||
{
|
||||
m_VoteEnforce = CGameContext::VOTE_ENFORCE_NO;
|
||||
Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "CGameContext", "Aborted vote by admin login.");
|
||||
|
|
Loading…
Reference in a new issue