Don't allow voting "info"

This commit is contained in:
def 2013-07-30 00:39:27 +02:00
parent aad8b97dae
commit 7f3b86227c

View file

@ -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);