mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Don't allow voting "info"
This commit is contained in:
parent
aad8b97dae
commit
7f3b86227c
|
@ -346,9 +346,6 @@ void CGameContext::StartVote(const char *pDesc, const char *pCommand, const char
|
|||
if(m_VoteCloseTime)
|
||||
return;
|
||||
|
||||
if (str_comp(pCommand,"info") == 0)
|
||||
return;
|
||||
|
||||
// reset votes
|
||||
m_VoteEnforce = VOTE_ENFORCE_UNKNOWN;
|
||||
m_VoteEnforcer = -1;
|
||||
|
@ -1035,7 +1032,7 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID)
|
|||
}
|
||||
}
|
||||
|
||||
if(aCmd[0])
|
||||
if(aCmd[0] && str_comp(pCommand,"info"))
|
||||
{
|
||||
SendChat(-1, CGameContext::CHAT_ALL, aChatmsg);
|
||||
StartVote(aDesc, aCmd, pReason);
|
||||
|
|
Loading…
Reference in a new issue