diff --git a/src/game/server/ddracechat.cpp b/src/game/server/ddracechat.cpp index 4404b559c..264ad9731 100644 --- a/src/game/server/ddracechat.cpp +++ b/src/game/server/ddracechat.cpp @@ -796,7 +796,7 @@ void CGameContext::ConJoinTeam(IConsole::IResult *pResult, void *pUserData) if (!pPlayer) return; - if (pSelf->m_VoteCloseTime && pSelf->m_VoteCreator == pResult->m_ClientID) + if (pSelf->m_VoteCloseTime && pSelf->m_VoteCreator == pResult->m_ClientID && (pSelf->m_VoteKick || pSelf->m_VoteSpec)) { pSelf->Console()->Print( IConsole::OUTPUT_LEVEL_STANDARD, diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index 25e39f3c3..0a9056a1d 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -1586,7 +1586,7 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID) } else if (MsgID == NETMSGTYPE_CL_KILL && !m_World.m_Paused) { - if(m_VoteCloseTime && m_VoteCreator == ClientID && GetDDRaceTeam(ClientID)) + if(m_VoteCloseTime && m_VoteCreator == ClientID && GetDDRaceTeam(ClientID) && (m_VoteKick || m_VoteSpec)) { SendChatTarget(ClientID, "You are running a vote please try again after the vote is done!"); return;