mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-13 03:28:19 +00:00
Allow vote-kicking players with same auth level
This commit is contained in:
parent
4f33aceb1c
commit
4b1651f18c
|
@ -1569,7 +1569,7 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int KickedAuthed = Server()->GetAuthedState(KickID);
|
int KickedAuthed = Server()->GetAuthedState(KickID);
|
||||||
if(KickedAuthed > 0 && KickedAuthed >= Authed)
|
if(KickedAuthed > Authed)
|
||||||
{
|
{
|
||||||
SendChatTarget(ClientID, "You can't kick authorized players");
|
SendChatTarget(ClientID, "You can't kick authorized players");
|
||||||
m_apPlayers[ClientID]->m_Last_KickVote = time_get();
|
m_apPlayers[ClientID]->m_Last_KickVote = time_get();
|
||||||
|
|
Loading…
Reference in a new issue