mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 05:58:19 +00:00
Set m_VoteCreator
when using force_vote
This commit is contained in:
parent
9fbbf5cde7
commit
f407adc61c
|
@ -3396,6 +3396,7 @@ void CGameContext::ConForceVote(IConsole::IResult *pResult, void *pUserData)
|
|||
{
|
||||
str_format(aBuf, sizeof(aBuf), "authorized player forced server option '%s' (%s)", pValue, pReason);
|
||||
pSelf->SendChatTarget(-1, aBuf, FLAG_SIX);
|
||||
pSelf->m_VoteCreator = pResult->m_ClientId;
|
||||
pSelf->Console()->ExecuteLine(pOption->m_aCommand);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue